toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case TaskStopCode.taskFailedToStart:
      return 'TaskFailedToStart';
    case TaskStopCode.essentialContainerExited:
      return 'EssentialContainerExited';
    case TaskStopCode.userInitiated:
      return 'UserInitiated';
  }
}