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