TaxProductRegistrationsResourceCountryOptionsUnitedStates.fromJson constructor

TaxProductRegistrationsResourceCountryOptionsUnitedStates.fromJson(
  1. Object? json
)

Implementation

factory TaxProductRegistrationsResourceCountryOptionsUnitedStates.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TaxProductRegistrationsResourceCountryOptionsUnitedStates(
    localAmusementTax: map['local_amusement_tax'] == null
        ? null
        : TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTax
            .fromJson(map['local_amusement_tax']),
    localLeaseTax: map['local_lease_tax'] == null
        ? null
        : TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTax
            .fromJson(map['local_lease_tax']),
    state: (map['state'] as String),
    type: TaxProductRegistrationsResourceCountryOptionsUnitedStatesType
        .fromJson(map['type']),
  );
}