decode method
Implementation
@override
InventoryManagementEnums decode(dynamic value) {
switch (value) {
case "waybill_quantity":
return InventoryManagementEnums.wayBillQuantity;
case "vehicle_number":
return InventoryManagementEnums.vehicleNumber;
case "comments":
return InventoryManagementEnums.comments;
case "deliveryTeam":
return InventoryManagementEnums.deliveryTeam;
case "lat":
return InventoryManagementEnums.lat;
case "lng":
return InventoryManagementEnums.lng;
case "name":
return InventoryManagementEnums.name;
case "userName":
return InventoryManagementEnums.userName;
default:
throw MapperException.unknownEnumValue(value);
}
}