ChannelAdminLogEventActionChangePeerColor.deserialize constructor
ChannelAdminLogEventActionChangePeerColor.deserialize(
- 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;
}