fromJson static method
Implementation
static Contact? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return Contact(
phoneNumber: (json['phone_number'] as String?) ?? '',
firstName: (json['first_name'] as String?) ?? '',
lastName: (json['last_name'] as String?) ?? '',
vcard: (json['vcard'] as String?) ?? '',
userId: (json['user_id'] as int?) ?? 0,
);
}