toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case TaskStatus.scheduled:
      return 'scheduled';
    case TaskStatus.inProgress:
      return 'inProgress';
    case TaskStatus.completed:
      return 'completed';
    case TaskStatus.failed:
      return 'failed';
  }
}