toJson method Null safety
Implementation
Map<String, dynamic> toJson() => {
"summary": summary == null
? null
: List<dynamic>.from(summary!.map((x) => x.toJson())),
"couponInfo": couponInfo == null ? null : couponInfo!.toJson(),
"loyaltyPoints": loyaltyPoints == null ? null : loyaltyPoints!.toJson(),
"configDeliveryPeriod": configDeliveryPeriod == null
? null
: configDeliveryPeriod!.toJson(),
"total": total,
};