toContainerServiceDeploymentState method

ContainerServiceDeploymentState toContainerServiceDeploymentState()

Implementation

ContainerServiceDeploymentState toContainerServiceDeploymentState() {
  switch (this) {
    case 'ACTIVATING':
      return ContainerServiceDeploymentState.activating;
    case 'ACTIVE':
      return ContainerServiceDeploymentState.active;
    case 'INACTIVE':
      return ContainerServiceDeploymentState.inactive;
    case 'FAILED':
      return ContainerServiceDeploymentState.failed;
  }
  throw Exception(
      '$this is not known in enum ContainerServiceDeploymentState');
}