SubscriptionPurchaseV2.fromJson constructor

SubscriptionPurchaseV2.fromJson(
  1. Map json_
)

Implementation

SubscriptionPurchaseV2.fromJson(core.Map json_)
    : this(
        acknowledgementState: json_.containsKey('acknowledgementState')
            ? json_['acknowledgementState'] as core.String
            : null,
        canceledStateContext: json_.containsKey('canceledStateContext')
            ? CanceledStateContext.fromJson(json_['canceledStateContext']
                as core.Map<core.String, core.dynamic>)
            : null,
        externalAccountIdentifiers:
            json_.containsKey('externalAccountIdentifiers')
                ? ExternalAccountIdentifiers.fromJson(
                    json_['externalAccountIdentifiers']
                        as core.Map<core.String, core.dynamic>)
                : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        latestOrderId: json_.containsKey('latestOrderId')
            ? json_['latestOrderId'] as core.String
            : null,
        lineItems: json_.containsKey('lineItems')
            ? (json_['lineItems'] as core.List)
                .map((value) => SubscriptionPurchaseLineItem.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        linkedPurchaseToken: json_.containsKey('linkedPurchaseToken')
            ? json_['linkedPurchaseToken'] as core.String
            : null,
        pausedStateContext: json_.containsKey('pausedStateContext')
            ? PausedStateContext.fromJson(json_['pausedStateContext']
                as core.Map<core.String, core.dynamic>)
            : null,
        regionCode: json_.containsKey('regionCode')
            ? json_['regionCode'] as core.String
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
        subscribeWithGoogleInfo: json_.containsKey('subscribeWithGoogleInfo')
            ? SubscribeWithGoogleInfo.fromJson(
                json_['subscribeWithGoogleInfo']
                    as core.Map<core.String, core.dynamic>)
            : null,
        subscriptionState: json_.containsKey('subscriptionState')
            ? json_['subscriptionState'] as core.String
            : null,
        testPurchase: json_.containsKey('testPurchase')
            ? TestPurchase.fromJson(
                json_['testPurchase'] as core.Map<core.String, core.dynamic>)
            : null,
      );