ChannelAdminLogEventActionChangeProfilePeerColor.deserialize constructor
ChannelAdminLogEventActionChangeProfilePeerColor.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory ChannelAdminLogEventActionChangeProfilePeerColor.deserialize(
BinaryReader reader,
) {
// Read [ChannelAdminLogEventActionChangeProfilePeerColor] fields.
final prevValue = reader.readObject() as PeerColorBase;
final newValue = reader.readObject() as PeerColorBase;
// Construct [ChannelAdminLogEventActionChangeProfilePeerColor] object.
final returnValue = ChannelAdminLogEventActionChangeProfilePeerColor(
prevValue: prevValue,
newValue: newValue,
);
// Now return the deserialized [ChannelAdminLogEventActionChangeProfilePeerColor].
return returnValue;
}