ChannelAdminLogEventActionParticipantInvite.deserialize constructor

ChannelAdminLogEventActionParticipantInvite.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelAdminLogEventActionParticipantInvite.deserialize(
    BinaryReader reader) {
  // Read [ChannelAdminLogEventActionParticipantInvite] fields.
  final participant = reader.readObject() as ChannelParticipantBase;

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

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