Contact class

This object represents a phone contact.

Constructors

Contact({required String phoneNumber, required String firstName, String? lastName, int? userId, String? vcard})
Constructs a Contact object.
const
Contact.fromJson(Map<String, dynamic> json)
Creates a Contact object from json.
factory

Properties

firstName String
Contact's first name
final
hashCode int
The hash code for this object.
no setterinherited
lastName String?
Optional. Contact's last name
final
phoneNumber String
Contact's phone number
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId int?
Optional. Contact's user identifier in Telegram
final
vcard String?
Optional. Additional data about the contact in the form of a vCard
final

Methods

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

Operators

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