LoyaltyProgram.fromJson constructor

LoyaltyProgram.fromJson(
  1. Map json_
)

Implementation

LoyaltyProgram.fromJson(core.Map json_)
  : this(
      cashbackForFutureUse:
          json_.containsKey('cashbackForFutureUse')
              ? Price.fromJson(
                json_['cashbackForFutureUse']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      loyaltyPoints: json_['loyaltyPoints'] as core.String?,
      memberPriceEffectiveDate:
          json_.containsKey('memberPriceEffectiveDate')
              ? Interval.fromJson(
                json_['memberPriceEffectiveDate']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      price:
          json_.containsKey('price')
              ? Price.fromJson(
                json_['price'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      programLabel: json_['programLabel'] as core.String?,
      shippingLabel: json_['shippingLabel'] as core.String?,
      tierLabel: json_['tierLabel'] as core.String?,
    );