toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (acknowledgementState != null)
        'acknowledgementState': acknowledgementState!,
      if (autoRenewing != null) 'autoRenewing': autoRenewing!,
      if (autoResumeTimeMillis != null)
        'autoResumeTimeMillis': autoResumeTimeMillis!,
      if (cancelReason != null) 'cancelReason': cancelReason!,
      if (cancelSurveyResult != null)
        'cancelSurveyResult': cancelSurveyResult!,
      if (countryCode != null) 'countryCode': countryCode!,
      if (developerPayload != null) 'developerPayload': developerPayload!,
      if (emailAddress != null) 'emailAddress': emailAddress!,
      if (expiryTimeMillis != null) 'expiryTimeMillis': expiryTimeMillis!,
      if (externalAccountId != null) 'externalAccountId': externalAccountId!,
      if (familyName != null) 'familyName': familyName!,
      if (givenName != null) 'givenName': givenName!,
      if (introductoryPriceInfo != null)
        'introductoryPriceInfo': introductoryPriceInfo!,
      if (kind != null) 'kind': kind!,
      if (linkedPurchaseToken != null)
        'linkedPurchaseToken': linkedPurchaseToken!,
      if (obfuscatedExternalAccountId != null)
        'obfuscatedExternalAccountId': obfuscatedExternalAccountId!,
      if (obfuscatedExternalProfileId != null)
        'obfuscatedExternalProfileId': obfuscatedExternalProfileId!,
      if (orderId != null) 'orderId': orderId!,
      if (paymentState != null) 'paymentState': paymentState!,
      if (priceAmountMicros != null) 'priceAmountMicros': priceAmountMicros!,
      if (priceChange != null) 'priceChange': priceChange!,
      if (priceCurrencyCode != null) 'priceCurrencyCode': priceCurrencyCode!,
      if (profileId != null) 'profileId': profileId!,
      if (profileName != null) 'profileName': profileName!,
      if (promotionCode != null) 'promotionCode': promotionCode!,
      if (promotionType != null) 'promotionType': promotionType!,
      if (purchaseType != null) 'purchaseType': purchaseType!,
      if (startTimeMillis != null) 'startTimeMillis': startTimeMillis!,
      if (userCancellationTimeMillis != null)
        'userCancellationTimeMillis': userCancellationTimeMillis!,
    };