toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case TaskStatus.available:
      return 'AVAILABLE';
    case TaskStatus.creating:
      return 'CREATING';
    case TaskStatus.queued:
      return 'QUEUED';
    case TaskStatus.running:
      return 'RUNNING';
    case TaskStatus.unavailable:
      return 'UNAVAILABLE';
  }
}