PhotoStrippedSize.deserialize constructor

PhotoStrippedSize.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory PhotoStrippedSize.deserialize(BinaryReader reader) {
  // Read [PhotoStrippedSize] fields.
  final type = reader.readString();
  final bytes = reader.readBytes();

  // Construct [PhotoStrippedSize] object.
  final returnValue = PhotoStrippedSize(
    type: type,
    bytes: bytes,
  );

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