toCapability method

Capability toCapability()

Implementation

Capability toCapability() {
  switch (this) {
    case 'CAPABILITY_IAM':
      return Capability.capabilityIam;
    case 'CAPABILITY_NAMED_IAM':
      return Capability.capabilityNamedIam;
    case 'CAPABILITY_AUTO_EXPAND':
      return Capability.capabilityAutoExpand;
  }
  throw Exception('$this is not known in enum Capability');
}