ChannelAdminLogEventActionChangeLocation.deserialize constructor

ChannelAdminLogEventActionChangeLocation.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelAdminLogEventActionChangeLocation.deserialize(
    BinaryReader reader) {
  // Read [ChannelAdminLogEventActionChangeLocation] fields.
  final prevValue = reader.readObject() as ChannelLocationBase;
  final newValue = reader.readObject() as ChannelLocationBase;

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

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