toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (account != null) 'account': account!,
      if (cancellationReason != null)
        'cancellationReason': cancellationReason!,
      if (consumers != null) 'consumers': consumers!,
      if (createTime != null) 'createTime': createTime!,
      if (entitlementBenefitIds != null)
        'entitlementBenefitIds': entitlementBenefitIds!,
      if (inputProperties != null) 'inputProperties': inputProperties!,
      if (messageToUser != null) 'messageToUser': messageToUser!,
      if (name != null) 'name': name!,
      if (newOfferEndTime != null) 'newOfferEndTime': newOfferEndTime!,
      if (newOfferStartTime != null) 'newOfferStartTime': newOfferStartTime!,
      if (newPendingOffer != null) 'newPendingOffer': newPendingOffer!,
      if (newPendingOfferDuration != null)
        'newPendingOfferDuration': newPendingOfferDuration!,
      if (newPendingPlan != null) 'newPendingPlan': newPendingPlan!,
      if (offer != null) 'offer': offer!,
      if (offerDuration != null) 'offerDuration': offerDuration!,
      if (offerEndTime != null) 'offerEndTime': offerEndTime!,
      if (orderId != null) 'orderId': orderId!,
      if (plan != null) 'plan': plan!,
      if (product != null) 'product': product!,
      if (productExternalName != null)
        'productExternalName': productExternalName!,
      if (provider != null) 'provider': provider!,
      if (quoteExternalName != null) 'quoteExternalName': quoteExternalName!,
      if (state != null) 'state': state!,
      if (subscriptionEndTime != null)
        'subscriptionEndTime': subscriptionEndTime!,
      if (updateTime != null) 'updateTime': updateTime!,
      if (usageReportingId != null) 'usageReportingId': usageReportingId!,
    };