ChannelAdminLogEventActionToggleAntiSpam.deserialize constructor

ChannelAdminLogEventActionToggleAntiSpam.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelAdminLogEventActionToggleAntiSpam.deserialize(
  BinaryReader reader,
) {
  // Read [ChannelAdminLogEventActionToggleAntiSpam] fields.
  final newValue = reader.readBool();

  // Construct [ChannelAdminLogEventActionToggleAntiSpam] object.
  final returnValue = ChannelAdminLogEventActionToggleAntiSpam(
    newValue: newValue,
  );

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