ProductAmount.fromJson constructor

ProductAmount.fromJson(
  1. Map json_
)

Implementation

ProductAmount.fromJson(core.Map json_)
    : this(
        priceAmount: json_.containsKey('priceAmount')
            ? Price.fromJson(
                json_['priceAmount'] as core.Map<core.String, core.dynamic>)
            : null,
        remittedTaxAmount: json_.containsKey('remittedTaxAmount')
            ? Price.fromJson(json_['remittedTaxAmount']
                as core.Map<core.String, core.dynamic>)
            : null,
        taxAmount: json_.containsKey('taxAmount')
            ? Price.fromJson(
                json_['taxAmount'] as core.Map<core.String, core.dynamic>)
            : null,
      );