ChannelAdminLogEventActionChangePeerColor.deserialize constructor

ChannelAdminLogEventActionChangePeerColor.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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