toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (cancellationDetails != null)
        'cancellationDetails': cancellationDetails!,
      if (createTime != null) 'createTime': createTime!,
      if (cycleEndTime != null) 'cycleEndTime': cycleEndTime!,
      if (endUserEntitled != null) 'endUserEntitled': endUserEntitled!,
      if (freeTrialEndTime != null) 'freeTrialEndTime': freeTrialEndTime!,
      if (lineItems != null) 'lineItems': lineItems!,
      if (name != null) 'name': name!,
      if (partnerUserToken != null) 'partnerUserToken': partnerUserToken!,
      if (processingState != null) 'processingState': processingState!,
      if (products != null) 'products': products!,
      if (promotionSpecs != null) 'promotionSpecs': promotionSpecs!,
      if (promotions != null) 'promotions': promotions!,
      if (purchaseTime != null) 'purchaseTime': purchaseTime!,
      if (redirectUri != null) 'redirectUri': redirectUri!,
      if (renewalTime != null) 'renewalTime': renewalTime!,
      if (serviceLocation != null) 'serviceLocation': serviceLocation!,
      if (state != null) 'state': state!,
      if (updateTime != null) 'updateTime': updateTime!,
      if (upgradeDowngradeDetails != null)
        'upgradeDowngradeDetails': upgradeDowngradeDetails!,
    };