objectDartify method

Object? objectDartify()

Converts an Object, which could be a JSAny, to a Dart type in a graceful manner. See isJSAny.

Implementation

Object? objectDartify() {
  final self = this;
  if (self == null) return null;
  return self.isA<JSAny>() ? (self as JSAny).dartify() : self;
}