MessagesSetTyping.deserialize constructor
MessagesSetTyping.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory MessagesSetTyping.deserialize(BinaryReader reader) {
// Read [MessagesSetTyping] fields.
final flags = reader.readInt32();
final peer = reader.readObject() as InputPeerBase;
final hasTopMsgIdField = (flags & 1) != 0;
final topMsgId = hasTopMsgIdField ? reader.readInt32() : null;
final action = reader.readObject() as SendMessageActionBase;
// Construct [MessagesSetTyping] object.
final returnValue = MessagesSetTyping(
peer: peer,
topMsgId: topMsgId,
action: action,
);
// Now return the deserialized [MessagesSetTyping].
return returnValue;
}