toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accountHoldDuration != null)
        'accountHoldDuration': accountHoldDuration!,
      if (billingPeriodDuration != null)
        'billingPeriodDuration': billingPeriodDuration!,
      if (gracePeriodDuration != null)
        'gracePeriodDuration': gracePeriodDuration!,
      if (legacyCompatible != null) 'legacyCompatible': legacyCompatible!,
      if (legacyCompatibleSubscriptionOfferId != null)
        'legacyCompatibleSubscriptionOfferId':
            legacyCompatibleSubscriptionOfferId!,
      if (prorationMode != null) 'prorationMode': prorationMode!,
      if (resubscribeState != null) 'resubscribeState': resubscribeState!,
    };