fromJson static method

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

Creates a object from a json

Implementation

static 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'],
  );
}