serializeExtension function

dynamic serializeExtension(
  1. Type self,
  2. SerialBuffer buffer,
  3. dynamic data, {
  4. SerializerState? state,
  5. dynamic allowExtensions = true,
})

Implementation

serializeExtension(Type self, SerialBuffer buffer, dynamic data, {SerializerState? state, allowExtensions = true}) {
  if (state == null) state = SerializerState();
  self.extensionOf!.serialize?.call(self.extensionOf, buffer, data, state: state, allowExtensions: allowExtensions);
}