ProductTax.fromJson constructor

ProductTax.fromJson(
  1. Map json_
)

Implementation

ProductTax.fromJson(core.Map json_)
    : this(
        country: json_.containsKey('country')
            ? json_['country'] as core.String
            : null,
        locationId: json_.containsKey('locationId')
            ? json_['locationId'] as core.String
            : null,
        postalCode: json_.containsKey('postalCode')
            ? json_['postalCode'] as core.String
            : null,
        rate: json_.containsKey('rate')
            ? (json_['rate'] as core.num).toDouble()
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        taxShip: json_.containsKey('taxShip')
            ? json_['taxShip'] as core.bool
            : null,
      );