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