PersonalDetails class

Contains the user's personal details

Inheritance

Constructors

PersonalDetails({String? extra, int? client_id, string? first_name, string? middle_name, string? last_name, string? native_first_name, string? native_middle_name, string? native_last_name, Date? birthdate, string? gender, string? country_code, string? residence_country_code})
PersonalDetails.fromMap(Map<String, dynamic> map)

Properties

birthdate Date?
Birthdate of the user
getter/setter pair
client_id int?
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
country_code string?
A two-letter ISO 3166-1 alpha-2 country code of the user's country
getter/setter pair
extra String?
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
first_name string?
First name of the user written in English; 1-255 characters
getter/setter pair
gender string?
Gender of the user, "male" or "female"
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
last_name string?
Last name of the user written in English; 1-255 characters
getter/setter pair
middle_name string?
Middle name of the user written in English; 0-255 characters
getter/setter pair
native_first_name string?
Native first name of the user; 1-255 characters
getter/setter pair
native_last_name string?
Native last name of the user; 1-255 characters
getter/setter pair
native_middle_name string?
Native middle name of the user; 0-255 characters
getter/setter pair
residence_country_code string?
A two-letter ISO 3166-1 alpha-2 country code of the user's residence country
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tdType String
JSON object type; maps to the field @type.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({dynamic skipNulls = true}) String
Serialize a Td instance to a JSON string. If skipNulls is true the fields with null values are not serialized.
inherited
toMap({dynamic skipNulls = true}) Map<String, dynamic>
Create a Map from a Td instance.
override
toString({dynamic skipNulls = false}) String
A string representation of this object.
inherited

Operators

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