toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'subscriberId': subscriberId,
    'price': price,
    'status': status,
    'wallet': wallet,
    'paymentHash': paymentHash,
    'currency': currency,
    'passengerChangeCounter': passengerChangeCounter,
    'package': package,
    'name': name,
    'expiryDate': expiryDate.toIso8601String(),
    'type': type,
    'maxTotalBooking': maxTotalBooking,
    'neoMilesPaymentPercentage': neoMilesPaymentPercentage,
    'neoOneMonthlySubscription': neoOneMonthlySubscription,
    'paymentId': paymentId,
    'createdAt': createdAt.toIso8601String(),
    'updatedAt': updatedAt.toIso8601String(),
  };
}