InputPeerPhotoFileLocation.deserialize constructor
InputPeerPhotoFileLocation.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory InputPeerPhotoFileLocation.deserialize(BinaryReader reader) {
// Read [InputPeerPhotoFileLocation] fields.
final flags = reader.readInt32();
final big = (flags & 1) != 0;
final peer = reader.readObject() as InputPeerBase;
final photoId = reader.readInt64();
// Construct [InputPeerPhotoFileLocation] object.
final returnValue = InputPeerPhotoFileLocation(
big: big,
peer: peer,
photoId: photoId,
);
// Now return the deserialized [InputPeerPhotoFileLocation].
return returnValue;
}