toBytes method

  1. @override
Uint8List toBytes([
  1. String? fileIdentifier
])
override

Convenience method to serialize to byte list.

Implementation

@override
Uint8List toBytes([String? fileIdentifier]) {
  final fbBuilder = fb.Builder(deduplicateTables: false);
  fbBuilder.finish(finish(fbBuilder), fileIdentifier);
  return fbBuilder.buffer;
}