LangPackString.deserialize constructor

LangPackString.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory LangPackString.deserialize(BinaryReader reader) {
  // Read [LangPackString] fields.
  final key = reader.readString();
  final value = reader.readString();

  // Construct [LangPackString] object.
  final returnValue = LangPackString(key: key, value: value);

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