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