serialize method

Uint8List serialize()

Implementation

Uint8List serialize() {
  return Uint8List.fromList(jsonEncode(toJson()).codeUnits);
}