toJobState method
Implementation
JobState toJobState() {
switch (this) {
case 'New':
return JobState.$new;
case 'PreparingAppliance':
return JobState.preparingAppliance;
case 'PreparingShipment':
return JobState.preparingShipment;
case 'InTransitToCustomer':
return JobState.inTransitToCustomer;
case 'WithCustomer':
return JobState.withCustomer;
case 'InTransitToAWS':
return JobState.inTransitToAWS;
case 'WithAWSSortingFacility':
return JobState.withAWSSortingFacility;
case 'WithAWS':
return JobState.withAWS;
case 'InProgress':
return JobState.inProgress;
case 'Complete':
return JobState.complete;
case 'Cancelled':
return JobState.cancelled;
case 'Listing':
return JobState.listing;
case 'Pending':
return JobState.pending;
}
throw Exception('$this is not known in enum JobState');
}