Contact.fromJson constructor

Contact.fromJson(
  1. Map<String, dynamic> json
)

Parses a Contact from TDLib JSON.

Implementation

factory Contact.fromJson(Map<String, dynamic> json) => Contact(
  phoneNumber: _readString(json['phone_number']),
  firstName: _readString(json['first_name']),
  lastName: _readString(json['last_name']),
  vcard: _readString(json['vcard']),
  userId: _readInt(json['user_id']),
);