ChannelAdminLogEventActionExportedInviteRevoke.deserialize constructor

ChannelAdminLogEventActionExportedInviteRevoke.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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