Contact.fromJson constructor

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

Creates a Contact object from json.

Implementation

factory Contact.fromJson(Map<String, dynamic> json) {
  return Contact(
    phoneNumber: json['phone_number']!,
    firstName: json['first_name']!,
    lastName: json['last_name'],
    userId: json['user_id'],
    vcard: json['vcard'],
  );
}