SerializationHook constructor
SerializationHook({})
Implementation
SerializationHook({
required this.id,
required this.serialize,
required this.deserialize,
this.canHandle,
this.onError,
this.silentOnError = false,
this.forStore = true,
}) {
if (_registeredHooks.containsKey(id)) {
throw ArgumentError(
'A SerializationHook with id "$id" is already registered.',
);
}
_registeredHooks[id] = this;
}