UpdateUserTyping.deserialize constructor

UpdateUserTyping.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory UpdateUserTyping.deserialize(BinaryReader reader) {
  // Read [UpdateUserTyping] fields.
  final userId = reader.readInt64();
  final action = reader.readObject() as SendMessageActionBase;

  // Construct [UpdateUserTyping] object.
  final returnValue = UpdateUserTyping(
    userId: userId,
    action: action,
  );

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