ChannelsGetParticipant.deserialize constructor

ChannelsGetParticipant.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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