PEApplePayContact.fromJson constructor

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

Implementation

factory PEApplePayContact.fromJson(Map<String, dynamic> json) {
  return PEApplePayContact(
    givenName: json['givenName'] as String?,
    familyName: json['familyName'] as String?,
    addressLines: json['addressLines'] != null ? List<String>.from(json['addressLines']) : null,
    locality: json['locality'] as String?,
    administrativeArea: json['administrativeArea'] as String?,
    postalCode: json['postalCode'] as String?,
    country: json['country'] as String?,
    countryCode: json['countryCode'] as String?,
    subAdministrativeArea: json['subAdministrativeArea'] as String?,
    subLocality: json['subLocality'] as String?,
    emailAddress: json['emailAddress'] as String?,
    phoneNumber: json['phoneNumber'] as String?,
  );
}