UpdateMonoForumNoPaidException.deserialize constructor

UpdateMonoForumNoPaidException.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory UpdateMonoForumNoPaidException.deserialize(BinaryReader reader) {
  // Read [UpdateMonoForumNoPaidException] fields.
  final flags = reader.readInt32();
  final exception = (flags & 1) != 0;
  final channelId = reader.readInt64();
  final savedPeerId = reader.readObject() as PeerBase;

  // Construct [UpdateMonoForumNoPaidException] object.
  final returnValue = UpdateMonoForumNoPaidException(
    exception: exception,
    channelId: channelId,
    savedPeerId: savedPeerId,
  );

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