ChannelsEditBanned.deserialize constructor

ChannelsEditBanned.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelsEditBanned.deserialize(BinaryReader reader) {
  // Read [ChannelsEditBanned] fields.
  final channel = reader.readObject() as InputChannelBase;
  final participant = reader.readObject() as InputPeerBase;
  final bannedRights = reader.readObject() as ChatBannedRightsBase;

  // Construct [ChannelsEditBanned] object.
  final returnValue = ChannelsEditBanned(
    channel: channel,
    participant: participant,
    bannedRights: bannedRights,
  );

  // Now return the deserialized [ChannelsEditBanned].
  return returnValue;
}