handleSerialization method

  1. @override
PhpSerializationObjectInformation<Object> handleSerialization(
  1. Type objectType
)
override

Return a PhpSerializationObjectInformation for the requested class

Implementation

@override
PhpSerializationObjectInformation<Object> handleSerialization(
    Type objectType) {
  if (!bool.fromEnvironment('dart.library.mirrors')) {
    throw UnsupportedError('Platform not supported');
  }
  return _UsePropertiesOfClass(
    objectType,
    inspectPrivate: inspectPrivate,
    inspectGetters: inspectGetters,
  );
}