GzipPacked.deserialize constructor

GzipPacked.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory GzipPacked.deserialize(BinaryReader reader) {
  // Read [GzipPacked] fields.
  final packedData = reader.readBytes();

  // Construct [GzipPacked] object.
  final returnValue = GzipPacked(
    packedData: packedData,
  );

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