convertPairedInstances method

  1. @override
Object? convertPairedInstances(
  1. InstanceManager manager,
  2. Object? object
)
override

Converts PairedInstances to objects stored in manager.

Conversions:

  • PairedInstances are converted to the object instance they're paired to.
  • Lists are converted to List<Object?> and this method is applied to each value within the list.
  • Maps are converted to Map<Object?, Object?> and this method is applied to each key and each value.

Implementation

@override
Object? convertPairedInstances(InstanceManager manager, Object? object) {
  if (object is Uint8List ||
      object is Int32List ||
      object is Int64List ||
      object is Float64List) {
    return object;
  }

  return super.convertPairedInstances(manager, object);
}