toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case JobState.$new:
      return 'New';
    case JobState.preparingAppliance:
      return 'PreparingAppliance';
    case JobState.preparingShipment:
      return 'PreparingShipment';
    case JobState.inTransitToCustomer:
      return 'InTransitToCustomer';
    case JobState.withCustomer:
      return 'WithCustomer';
    case JobState.inTransitToAWS:
      return 'InTransitToAWS';
    case JobState.withAWSSortingFacility:
      return 'WithAWSSortingFacility';
    case JobState.withAWS:
      return 'WithAWS';
    case JobState.inProgress:
      return 'InProgress';
    case JobState.complete:
      return 'Complete';
    case JobState.cancelled:
      return 'Cancelled';
    case JobState.listing:
      return 'Listing';
    case JobState.pending:
      return 'Pending';
  }
}