Contact class

Describes a user contact.

Inheritance
Available Extensions

Constructors

Contact({required String phone_number, required String first_name, required String last_name, required String vcard, required int user_id, int? extra, int? clientId})
Describes a user contact

Properties

clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
extra int?
Request identifier. Must be non-zero.
read / writeoverride
first_name String
First name of the user; 1-255 characters in length.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
last_name String
Last name of the user.
read / write
phone_number String
Phone number of the user.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
user_id int
Identifier of the user, if known; 0 otherwise.
read / write
vcard String
Additional data about the user in a form of vCard; 0-2048 bytes in length.
read / write

Methods

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

Operators

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

Static Methods

fromMap(Map<String, dynamic>? _map) Contact?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"contact"