ShipmentMethodDTO.fromJson constructor
ShipmentMethodDTO.fromJson(
- Map<String, dynamic> json
)
Implementation
ShipmentMethodDTO.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
name = json['name'];
logoURL = json['logoURL'];
type = json['type'];
calculationType = json['calculationType'];
shipmentEstimatedDay = json['shipmentEstimatedDay'];
showShipmentEstimatedDay = json['showShipmentEstimatedDay'];
freeShipmentCargoLimit = json['freeShipmentCargoLimit'];
cashOnDelivery = json['cashOnDelivery'];
if (json['prices'] != null) {
prices = <ProductPriceDTO>[];
json['prices'].forEach((v) {
prices!.add(ProductPriceDTO.fromJson(v));
});
}
}