CallbackFunction typedef
CallbackFunction =
dynamic Function(Type type, dynamic json, Jsonizable? obj)
The encode and decode callback function prototype
This callback provides:
type
of the serializing objectjson
representation of the serializing object- the Jsonizable or Clonable object
obj
to be encoded to json or the empty object during decoding from json. NOTE:obj
is null if 'registerType' has been used
Implementation
typedef CallbackFunction = dynamic Function(
Type type, dynamic json, Jsonizable? obj);