User class

This object represents a Telegram user or bot.

https://core.telegram.org/bots/api#user

Annotations
  • @JsonSerializable.new(includeIfNull: false)

Constructors

User({int? id, bool? isBot, String? firstName, String? lastName, String? username, String? languageCode})
User.fromJson(Map<String, dynamic> json)
factory

Properties

firstName ↔ String?
User‘s or bot’s first name.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id ↔ int?
Unique identifier for this user or bot.
getter/setter pair
isBot ↔ bool?
True, if this user is a bot.
getter/setter pair
languageCode ↔ String?
Optional. IETF language tag of the user's language.
getter/setter pair
lastName ↔ String?
Optional. User‘s or bot’s last name.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
username ↔ String?
Optional. User‘s or bot’s username.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited