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