toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ScheduleState.modifying:
      return 'MODIFYING';
    case ScheduleState.active:
      return 'ACTIVE';
    case ScheduleState.failed:
      return 'FAILED';
  }
}