PhotosPhotosSlice.deserialize constructor

PhotosPhotosSlice.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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