toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ChannelState.creating:
      return 'CREATING';
    case ChannelState.createFailed:
      return 'CREATE_FAILED';
    case ChannelState.idle:
      return 'IDLE';
    case ChannelState.starting:
      return 'STARTING';
    case ChannelState.running:
      return 'RUNNING';
    case ChannelState.recovering:
      return 'RECOVERING';
    case ChannelState.stopping:
      return 'STOPPING';
    case ChannelState.deleting:
      return 'DELETING';
    case ChannelState.deleted:
      return 'DELETED';
    case ChannelState.updating:
      return 'UPDATING';
    case ChannelState.updateFailed:
      return 'UPDATE_FAILED';
  }
}