User class

Implemented types

Constructors

User({int id, String firstName, String lastName, String username, String phoneNumber, dynamic status, ProfilePhoto profilePhoto, dynamic outgoingLink, dynamic incomingLink, bool isVerified, bool isSupport, String restrictionReason, bool isScam, bool haveAccess, dynamic type, String languageCode})
Represents a user. id User identifier . firstName First name of the user . lastName Last name of the user . username Username of the user. phoneNumber Phone number of the user . status Current online status of the user . profilePhoto Profile photo of the user; may be null. outgoingLink Relationship from the current user to the other user . incomingLink Relationship from the other user to the current user. isVerified True, if the user is verified . isSupport True, if the user is Telegram support account. restrictionReason If non-empty, it contains the reason why access to this user must be restricted. The format of the string is ". isScam True, if many users reported this user as a scam. haveAccess If false, the user is inaccessible, and the only information known about the user is inside this class. It can't be passed to any method except GetUser . type Type of the user . languageCode IETF language tag of the user's language; only available to bots
User.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

extra ↔ dynamic
read / write
firstName String
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
haveAccess bool
read / write
id int
read / write
read / write
isScam bool
read / write
isSupport bool
read / write
isVerified bool
read / write
languageCode String
read / write
lastName String
read / write
read / write
phoneNumber String
read / write
profilePhoto ProfilePhoto
read / write
restrictionReason String
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
status ↔ dynamic
read / write
type ↔ dynamic
read / write
username String
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
override
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
"user"