ChannelAdminLogEventActionParticipantJoinByRequest.deserialize constructor

ChannelAdminLogEventActionParticipantJoinByRequest.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelAdminLogEventActionParticipantJoinByRequest.deserialize(
    BinaryReader reader) {
  // Read [ChannelAdminLogEventActionParticipantJoinByRequest] fields.
  final invite = reader.readObject() as ExportedChatInviteBase;
  final approvedBy = reader.readInt64();

  // Construct [ChannelAdminLogEventActionParticipantJoinByRequest] object.
  final returnValue = ChannelAdminLogEventActionParticipantJoinByRequest(
    invite: invite,
    approvedBy: approvedBy,
  );

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