PhotosPhoto.deserialize constructor

PhotosPhoto.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory PhotosPhoto.deserialize(BinaryReader reader) {
  // Read [PhotosPhoto] fields.
  final photo = reader.readObject() as PhotoBase;
  final users = reader.readVectorObject<UserBase>();

  // Construct [PhotosPhoto] object.
  final returnValue = PhotosPhoto(photo: photo, users: users.items);

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