toEnvironmentType method

EnvironmentType toEnvironmentType()

Implementation

EnvironmentType toEnvironmentType() {
  switch (this) {
    case 'ssh':
      return EnvironmentType.ssh;
    case 'ec2':
      return EnvironmentType.ec2;
  }
  throw Exception('$this is not known in enum EnvironmentType');
}