TaxSettings.fromJson constructor
TaxSettings.fromJson(
- Object? json
Implementation
factory TaxSettings.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return TaxSettings(
defaults: TaxProductResourceTaxSettingsDefaults.fromJson(map['defaults']),
headOffice: map['head_office'] == null
? null
: IssuingCardholderAddress.fromJson(map['head_office']),
livemode: (map['livemode'] as bool),
status: TaxSettingsStatus.fromJson(map['status']),
statusDetails: TaxProductResourceTaxSettingsStatusDetails.fromJson(
map['status_details']),
);
}