CardholderAddress.fromJson constructor
CardholderAddress.fromJson(
- Object? json
Implementation
factory CardholderAddress.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return CardholderAddress(
city: (map['city'] as String),
country: (map['country'] as String),
line1: (map['line1'] as String),
line2: map['line2'] == null ? null : (map['line2'] as String),
postalCode: (map['postal_code'] as String),
state: map['state'] == null ? null : (map['state'] as String),
);
}