Data.fromJson constructor
Implementation
factory Data.fromJson(Map<String, dynamic> json) => Data(
id: json["id"],
subscriberId: json["subscriberId"],
price: json["price"],
status: json["status"],
wallet: json["wallet"],
paymentHash: json["paymentHash"],
currency: json["currency"],
passengerChangeCounter: json["passengerChangeCounter"],
package: json["package"],
originalPackagePrice: json["originalPackagePrice"],
oriGinalPackageCurrency: json["ori ginalPackageCurrency"],
expiryDate: json["expiryDate"] == null ? null : DateTime.parse(json["expiryDate"]),
type: json["type"],
maxTotalBooking: json["maxTotalBooking"],
neoMilesPaymentPercentage: json["neoMilesPaymentPercentage"],
neoOneMonthlySubscription: json["neoOneMonthlySubscription"],
paymentId: json["paymentId"],
isUpgrade: json["isUpgrade"],
createdAt: json["createdAt"] == null ? null : DateTime.parse(json["createdAt"]),
updatedAt: json["updatedAt"] == null ? null : DateTime.parse(json["updatedAt"]),
);