ContactPhone.fromJson constructor
Creates a phone from a JSON map
Implementation
factory ContactPhone.fromJson(Map<String, dynamic> json) {
return ContactPhone(
number: (json['number'] as String?) ?? '',
label: _stringToLabel(json['label'] as String?),
customLabel: (json['customLabel'] as String?) ?? '',
isPrimary: (json['isPrimary'] as bool?) ?? false,
);
}