PhotosPhotos.deserialize constructor

PhotosPhotos.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory PhotosPhotos.deserialize(BinaryReader reader) {
  // Read [PhotosPhotos] fields.
  final photos = reader.readVectorObject<PhotoBase>();
  final users = reader.readVectorObject<UserBase>();

  // Construct [PhotosPhotos] object.
  final returnValue = PhotosPhotos(
    photos: photos,
    users: users,
  );

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