AutomatedDiscounts.fromJson constructor

AutomatedDiscounts.fromJson(
  1. Map json_
)

Implementation

AutomatedDiscounts.fromJson(core.Map json_)
  : this(
      gadPrice: json_.containsKey('gadPrice')
          ? Price.fromJson(
              json_['gadPrice'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      priorPrice: json_.containsKey('priorPrice')
          ? Price.fromJson(
              json_['priorPrice'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      priorPriceProgressive: json_.containsKey('priorPriceProgressive')
          ? Price.fromJson(
              json_['priorPriceProgressive']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
    );