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