Contact.fromJson constructor

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

Parse from a json

Implementation

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