Amount.fromJson constructor

Amount.fromJson(
  1. Map json_
)

Implementation

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