ProductTax constructor

ProductTax({
  1. double? rate,
  2. String? country,
  3. String? region,
  4. bool? taxShip,
  5. String? locationId,
  6. String? postalCode,
})

Implementation

factory ProductTax({
  $core.double? rate,
  $core.String? country,
  $core.String? region,
  $core.bool? taxShip,
  $core.String? locationId,
  $core.String? postalCode,
}) {
  final _result = create();
  if (rate != null) {
    _result.rate = rate;
  }
  if (country != null) {
    _result.country = country;
  }
  if (region != null) {
    _result.region = region;
  }
  if (taxShip != null) {
    _result.taxShip = taxShip;
  }
  if (locationId != null) {
    _result.locationId = locationId;
  }
  if (postalCode != null) {
    _result.postalCode = postalCode;
  }
  return _result;
}