ChannelAdminLogEventActionParticipantJoinByInvite.deserialize constructor

ChannelAdminLogEventActionParticipantJoinByInvite.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelAdminLogEventActionParticipantJoinByInvite.deserialize(
    BinaryReader reader) {
  // Read [ChannelAdminLogEventActionParticipantJoinByInvite] fields.
  final flags = reader.readInt32();
  final viaChatlist = (flags & 1) != 0;
  final invite = reader.readObject() as ExportedChatInviteBase;

  // Construct [ChannelAdminLogEventActionParticipantJoinByInvite] object.
  final returnValue = ChannelAdminLogEventActionParticipantJoinByInvite(
    viaChatlist: viaChatlist,
    invite: invite,
  );

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