toJson method
Implementation
Map<String, dynamic> toJson() => {
"id": id,
"subscriberId": subscriberId,
"price": price,
"status": status,
"wallet": wallet,
"paymentHash": paymentHash,
"currency": currency,
"passengerChangeCounter": passengerChangeCounter,
"package": package,
"originalPackagePrice": originalPackagePrice,
"ori ginalPackageCurrency": oriGinalPackageCurrency,
"expiryDate": "${expiryDate!.year.toString().padLeft(4, '0')}-${expiryDate!.month.toString().padLeft(2, '0')}-${expiryDate!.day.toString().padLeft(2, '0')}",
"type": type,
"maxTotalBooking": maxTotalBooking,
"neoMilesPaymentPercentage": neoMilesPaymentPercentage,
"neoOneMonthlySubscription": neoOneMonthlySubscription,
"paymentId": paymentId,
"isUpgrade": isUpgrade,
"createdAt": createdAt?.toIso8601String(),
"updatedAt": updatedAt?.toIso8601String(),
};