PhotoSizeProgressive.deserialize constructor

PhotoSizeProgressive.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory PhotoSizeProgressive.deserialize(BinaryReader reader) {
  // Read [PhotoSizeProgressive] fields.
  final type = reader.readString();
  final w = reader.readInt32();
  final h = reader.readInt32();
  final sizes = reader.readVectorInt32();

  // Construct [PhotoSizeProgressive] object.
  final returnValue = PhotoSizeProgressive(
    type: type,
    w: w,
    h: h,
    sizes: sizes,
  );

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