toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
if (freeShipping != null) {
data['free_shipping'] = freeShipping!.map((v) => v.toJson()).toList();
}
if (flatRate != null) {
data['flat_rate'] = flatRate!.map((v) => v.toJson()).toList();
}
if (localPickup != null) {
data['local_pickup'] = localPickup!.map((v) => v.toJson()).toList();
}
return data;
}