TaxProductResourceTaxRateDetails.fromJson constructor

TaxProductResourceTaxRateDetails.fromJson(
  1. Object? json
)

Implementation

factory TaxProductResourceTaxRateDetails.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TaxProductResourceTaxRateDetails(
    country: map['country'] == null ? null : (map['country'] as String),
    percentageDecimal: (map['percentage_decimal'] as String),
    state: map['state'] == null ? null : (map['state'] as String),
    taxType: map['tax_type'] == null
        ? null
        : TaxProductResourceTaxRateDetailsTaxType.fromJson(map['tax_type']),
  );
}