PhotoSize023.deserialize constructor

PhotoSize023.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory PhotoSize023.deserialize(BinaryReader reader) {
  // Read [PhotoSize023] fields.
  final type = reader.readString();
  final location = reader.readObject() as FileLocationBase;
  final w = reader.readInt32();
  final h = reader.readInt32();
  final size = reader.readInt32();

  // Construct [PhotoSize023] object.
  final returnValue = PhotoSize023(
    type: type,
    location: location,
    w: w,
    h: h,
    size: size,
  );

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