toTargetTypeEnum method

TargetTypeEnum toTargetTypeEnum()

Implementation

TargetTypeEnum toTargetTypeEnum() {
  switch (this) {
    case 'instance':
      return TargetTypeEnum.instance;
    case 'ip':
      return TargetTypeEnum.ip;
    case 'lambda':
      return TargetTypeEnum.lambda;
  }
  throw Exception('$this is not known in enum TargetTypeEnum');
}