DataJSON.deserialize constructor

DataJSON.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory DataJSON.deserialize(BinaryReader reader) {
  // Read [DataJSON] fields.
  final data = reader.readString();

  // Construct [DataJSON] object.
  final returnValue = DataJSON(
    data: data,
  );

  // Now return the deserialized [DataJSON].
  return returnValue;
}