ChannelAdminLogEventActionChangeHistoryTTL.deserialize constructor

ChannelAdminLogEventActionChangeHistoryTTL.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelAdminLogEventActionChangeHistoryTTL.deserialize(
    BinaryReader reader) {
  // Read [ChannelAdminLogEventActionChangeHistoryTTL] fields.
  final prevValue = reader.readInt32();
  final newValue = reader.readInt32();

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

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