toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case EnvironmentStatus.error:
      return 'error';
    case EnvironmentStatus.creating:
      return 'creating';
    case EnvironmentStatus.connecting:
      return 'connecting';
    case EnvironmentStatus.ready:
      return 'ready';
    case EnvironmentStatus.stopping:
      return 'stopping';
    case EnvironmentStatus.stopped:
      return 'stopped';
    case EnvironmentStatus.deleting:
      return 'deleting';
  }
}