JsonBool.deserialize constructor

JsonBool.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory JsonBool.deserialize(BinaryReader reader) {
  // Read [JsonBool] fields.
  final value = reader.readBool();

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

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