ChannelAdminLogEventActionDefaultBannedRights.deserialize constructor

ChannelAdminLogEventActionDefaultBannedRights.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelAdminLogEventActionDefaultBannedRights.deserialize(
    BinaryReader reader) {
  // Read [ChannelAdminLogEventActionDefaultBannedRights] fields.
  final prevBannedRights = reader.readObject() as ChatBannedRightsBase;
  final newBannedRights = reader.readObject() as ChatBannedRightsBase;

  // Construct [ChannelAdminLogEventActionDefaultBannedRights] object.
  final returnValue = ChannelAdminLogEventActionDefaultBannedRights(
    prevBannedRights: prevBannedRights,
    newBannedRights: newBannedRights,
  );

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