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