toContainerServiceProtocol method

ContainerServiceProtocol toContainerServiceProtocol()

Implementation

ContainerServiceProtocol toContainerServiceProtocol() {
  switch (this) {
    case 'HTTP':
      return ContainerServiceProtocol.http;
    case 'HTTPS':
      return ContainerServiceProtocol.https;
    case 'TCP':
      return ContainerServiceProtocol.tcp;
    case 'UDP':
      return ContainerServiceProtocol.udp;
  }
  throw Exception('$this is not known in enum ContainerServiceProtocol');
}