toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['createdAt'] = createdAt;
data['name'] = name;
data['logoURL'] = logoURL;
data['type'] = type;
data['calculationType'] = calculationType;
data['shipmentEstimatedDay'] = shipmentEstimatedDay;
data['showShipmentEstimatedDay'] = showShipmentEstimatedDay;
data['freeShipmentCargoLimit'] = freeShipmentCargoLimit;
data['cashOnDelivery'] = cashOnDelivery;
if (prices != null) {
data['prices'] = prices!.map((v) => v.toJson()).toList();
}
return data;
}