UpdateReadChannelDiscussionOutbox.deserialize constructor
UpdateReadChannelDiscussionOutbox.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory UpdateReadChannelDiscussionOutbox.deserialize(BinaryReader reader) {
// Read [UpdateReadChannelDiscussionOutbox] fields.
final channelId = reader.readInt64();
final topMsgId = reader.readInt32();
final readMaxId = reader.readInt32();
// Construct [UpdateReadChannelDiscussionOutbox] object.
final returnValue = UpdateReadChannelDiscussionOutbox(
channelId: channelId,
topMsgId: topMsgId,
readMaxId: readMaxId,
);
// Now return the deserialized [UpdateReadChannelDiscussionOutbox].
return returnValue;
}