InputRichFilePhoto.deserialize constructor
InputRichFilePhoto.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory InputRichFilePhoto.deserialize(BinaryReader reader) {
// Read [InputRichFilePhoto] fields.
final id = reader.readString();
final photo = reader.readObject() as InputPhotoBase;
// Construct [InputRichFilePhoto] object.
final returnValue = InputRichFilePhoto(id: id, photo: photo);
// Now return the deserialized [InputRichFilePhoto].
return returnValue;
}