TransferDTO.fromJson constructor
TransferDTO.fromJson(
- Map<String, dynamic> json
)
Implementation
TransferDTO.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
note = json['note'];
status = json['status'];
vehicle =
json['vehicle'] != null ? VehicleDTO.fromJson(json['vehicle']) : null;
startWarehouse = json['startWarehouse'] != null
? WarehouseDTO.fromJson(json['startWarehouse'])
: null;
destinationWarehouse = json['destinationWarehouse'] != null
? WarehouseDTO.fromJson(json['destinationWarehouse'])
: null;
}