factory PhoneNumber.fromJson(Map<String, dynamic> json) { return PhoneNumber( number: json['Number'] as String, type: (json['Type'] as String).toPhoneNumberType(), ); }