ChannelAdminLogEventActionParticipantEditRank.deserialize constructor

ChannelAdminLogEventActionParticipantEditRank.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelAdminLogEventActionParticipantEditRank.deserialize(
  BinaryReader reader,
) {
  // Read [ChannelAdminLogEventActionParticipantEditRank] fields.
  final userId = reader.readInt64();
  final prevRank = reader.readString();
  final newRank = reader.readString();

  // Construct [ChannelAdminLogEventActionParticipantEditRank] object.
  final returnValue = ChannelAdminLogEventActionParticipantEditRank(
    userId: userId,
    prevRank: prevRank,
    newRank: newRank,
  );

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