SubscriptionPurchase.fromJson constructor

SubscriptionPurchase.fromJson(
  1. Map json_
)

Implementation

SubscriptionPurchase.fromJson(core.Map json_)
    : this(
        acknowledgementState: json_.containsKey('acknowledgementState')
            ? json_['acknowledgementState'] as core.int
            : null,
        autoRenewing: json_.containsKey('autoRenewing')
            ? json_['autoRenewing'] as core.bool
            : null,
        autoResumeTimeMillis: json_.containsKey('autoResumeTimeMillis')
            ? json_['autoResumeTimeMillis'] as core.String
            : null,
        cancelReason: json_.containsKey('cancelReason')
            ? json_['cancelReason'] as core.int
            : null,
        cancelSurveyResult: json_.containsKey('cancelSurveyResult')
            ? SubscriptionCancelSurveyResult.fromJson(
                json_['cancelSurveyResult']
                    as core.Map<core.String, core.dynamic>)
            : null,
        countryCode: json_.containsKey('countryCode')
            ? json_['countryCode'] as core.String
            : null,
        developerPayload: json_.containsKey('developerPayload')
            ? json_['developerPayload'] as core.String
            : null,
        emailAddress: json_.containsKey('emailAddress')
            ? json_['emailAddress'] as core.String
            : null,
        expiryTimeMillis: json_.containsKey('expiryTimeMillis')
            ? json_['expiryTimeMillis'] as core.String
            : null,
        externalAccountId: json_.containsKey('externalAccountId')
            ? json_['externalAccountId'] as core.String
            : null,
        familyName: json_.containsKey('familyName')
            ? json_['familyName'] as core.String
            : null,
        givenName: json_.containsKey('givenName')
            ? json_['givenName'] as core.String
            : null,
        introductoryPriceInfo: json_.containsKey('introductoryPriceInfo')
            ? IntroductoryPriceInfo.fromJson(json_['introductoryPriceInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        linkedPurchaseToken: json_.containsKey('linkedPurchaseToken')
            ? json_['linkedPurchaseToken'] as core.String
            : null,
        obfuscatedExternalAccountId:
            json_.containsKey('obfuscatedExternalAccountId')
                ? json_['obfuscatedExternalAccountId'] as core.String
                : null,
        obfuscatedExternalProfileId:
            json_.containsKey('obfuscatedExternalProfileId')
                ? json_['obfuscatedExternalProfileId'] as core.String
                : null,
        orderId: json_.containsKey('orderId')
            ? json_['orderId'] as core.String
            : null,
        paymentState: json_.containsKey('paymentState')
            ? json_['paymentState'] as core.int
            : null,
        priceAmountMicros: json_.containsKey('priceAmountMicros')
            ? json_['priceAmountMicros'] as core.String
            : null,
        priceChange: json_.containsKey('priceChange')
            ? SubscriptionPriceChange.fromJson(
                json_['priceChange'] as core.Map<core.String, core.dynamic>)
            : null,
        priceCurrencyCode: json_.containsKey('priceCurrencyCode')
            ? json_['priceCurrencyCode'] as core.String
            : null,
        profileId: json_.containsKey('profileId')
            ? json_['profileId'] as core.String
            : null,
        profileName: json_.containsKey('profileName')
            ? json_['profileName'] as core.String
            : null,
        promotionCode: json_.containsKey('promotionCode')
            ? json_['promotionCode'] as core.String
            : null,
        promotionType: json_.containsKey('promotionType')
            ? json_['promotionType'] as core.int
            : null,
        purchaseType: json_.containsKey('purchaseType')
            ? json_['purchaseType'] as core.int
            : null,
        startTimeMillis: json_.containsKey('startTimeMillis')
            ? json_['startTimeMillis'] as core.String
            : null,
        userCancellationTimeMillis:
            json_.containsKey('userCancellationTimeMillis')
                ? json_['userCancellationTimeMillis'] as core.String
                : null,
      );