toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (defaultLanguage != null) 'defaultLanguage': defaultLanguage!,
      if (defaultPrice != null) 'defaultPrice': defaultPrice!,
      if (gracePeriod != null) 'gracePeriod': gracePeriod!,
      if (listings != null) 'listings': listings!,
      if (managedProductTaxesAndComplianceSettings != null)
        'managedProductTaxesAndComplianceSettings':
            managedProductTaxesAndComplianceSettings!,
      if (packageName != null) 'packageName': packageName!,
      if (prices != null) 'prices': prices!,
      if (purchaseType != null) 'purchaseType': purchaseType!,
      if (sku != null) 'sku': sku!,
      if (status != null) 'status': status!,
      if (subscriptionPeriod != null)
        'subscriptionPeriod': subscriptionPeriod!,
      if (subscriptionTaxesAndComplianceSettings != null)
        'subscriptionTaxesAndComplianceSettings':
            subscriptionTaxesAndComplianceSettings!,
      if (trialPeriod != null) 'trialPeriod': trialPeriod!,
    };