ChannelAdminLogEventActionExportedInviteEdit.deserialize constructor

ChannelAdminLogEventActionExportedInviteEdit.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelAdminLogEventActionExportedInviteEdit.deserialize(
    BinaryReader reader) {
  // Read [ChannelAdminLogEventActionExportedInviteEdit] fields.
  final prevInvite = reader.readObject() as ExportedChatInviteBase;
  final newInvite = reader.readObject() as ExportedChatInviteBase;

  // Construct [ChannelAdminLogEventActionExportedInviteEdit] object.
  final returnValue = ChannelAdminLogEventActionExportedInviteEdit(
    prevInvite: prevInvite,
    newInvite: newInvite,
  );

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