SubscriptionPurchaseLineItem.fromJson constructor

SubscriptionPurchaseLineItem.fromJson(
  1. Map json_
)

Implementation

SubscriptionPurchaseLineItem.fromJson(core.Map json_)
    : this(
        autoRenewingPlan: json_.containsKey('autoRenewingPlan')
            ? AutoRenewingPlan.fromJson(json_['autoRenewingPlan']
                as core.Map<core.String, core.dynamic>)
            : null,
        deferredItemReplacement: json_.containsKey('deferredItemReplacement')
            ? DeferredItemReplacement.fromJson(
                json_['deferredItemReplacement']
                    as core.Map<core.String, core.dynamic>)
            : null,
        expiryTime: json_.containsKey('expiryTime')
            ? json_['expiryTime'] as core.String
            : null,
        offerDetails: json_.containsKey('offerDetails')
            ? OfferDetails.fromJson(
                json_['offerDetails'] as core.Map<core.String, core.dynamic>)
            : null,
        prepaidPlan: json_.containsKey('prepaidPlan')
            ? PrepaidPlan.fromJson(
                json_['prepaidPlan'] as core.Map<core.String, core.dynamic>)
            : null,
        productId: json_.containsKey('productId')
            ? json_['productId'] as core.String
            : null,
      );