PhotosPhoto.deserialize constructor
PhotosPhoto.deserialize(
- 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,
);
// Now return the deserialized [PhotosPhoto].
return returnValue;
}