StatsGraphError.deserialize constructor

StatsGraphError.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

  // Construct [StatsGraphError] object.
  final returnValue = StatsGraphError(error: error);

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