ChannelsDeleteParticipantHistory.deserialize constructor

ChannelsDeleteParticipantHistory.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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