toJSON method

Map<String, dynamic> toJSON()

Implementation

Map<String, dynamic> toJSON() {
  return <String, dynamic>{
    'subscriptionId': subscriptionId,
    'userId': userId,
    'level': level?.name,
    'price': price?.toJSON(),
    'status': status?.name,
    'startDate': startDate,
    'endDate': endDate,
    'endReason': endReason,
    // 'renewalDate': renewalDate?.toIso8601String(),
    // 'autoRenew': autoRenew,
    // 'paymentMethodId': paymentMethodId,
  };
}