toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (amount != null) 'amount': amount!,
      if (bundleDetails != null) 'bundleDetails': bundleDetails!,
      if (description != null) 'description': description!,
      if (finiteBillingCycleDetails != null)
        'finiteBillingCycleDetails': finiteBillingCycleDetails!,
      if (lineItemFreeTrialEndTime != null)
        'lineItemFreeTrialEndTime': lineItemFreeTrialEndTime!,
      if (lineItemIndex != null) 'lineItemIndex': lineItemIndex!,
      if (lineItemPromotionSpecs != null)
        'lineItemPromotionSpecs': lineItemPromotionSpecs!,
      if (oneTimeRecurrenceDetails != null)
        'oneTimeRecurrenceDetails': oneTimeRecurrenceDetails!,
      if (product != null) 'product': product!,
      if (productPayload != null) 'productPayload': productPayload!,
      if (recurrenceType != null) 'recurrenceType': recurrenceType!,
      if (state != null) 'state': state!,
    };