PersonalDetails class final

Contains the user's personal details

Inheritance

Constructors

PersonalDetails({required String firstName, required String middleName, required String lastName, required String nativeFirstName, required String nativeMiddleName, required String nativeLastName, required Date birthdate, required String gender, required String countryCode, required String residenceCountryCode})
Contains the user's personal details
const
PersonalDetails.fromJson(Map<String, dynamic> json)
Parses a PersonalDetails from TDLib JSON.
factory

Properties

birthdate → Date
Birthdate of the user
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
countryCode → String
A two-letter ISO 3166-1 alpha-2 country code of the user's country
final
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
firstName → String
First name of the user written in English; 1-255 characters
final
gender → String
Gender of the user, "male" or "female"
final
hashCode → int
The hash code for this object.
no setterinherited
lastName → String
Last name of the user written in English; 1-255 characters
final
middleName → String
Middle name of the user written in English; 0-255 characters
final
nativeFirstName → String
Native first name of the user; 1-255 characters
final
nativeLastName → String
Native last name of the user; 1-255 characters
final
nativeMiddleName → String
Native middle name of the user; 0-255 characters
final
residenceCountryCode → String
A two-letter ISO 3166-1 alpha-2 country code of the user's residence country
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? firstName, String? middleName, String? lastName, String? nativeFirstName, String? nativeMiddleName, String? nativeLastName, Date? birthdate, String? gender, String? countryCode, String? residenceCountryCode}) → PersonalDetails
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.