ChannelAdminLogEventActionChangeUsernames.deserialize constructor

ChannelAdminLogEventActionChangeUsernames.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelAdminLogEventActionChangeUsernames.deserialize(
  BinaryReader reader,
) {
  // Read [ChannelAdminLogEventActionChangeUsernames] fields.
  final prevValue = reader.readVectorString();
  final newValue = reader.readVectorString();

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

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