toPrincipalType method

PrincipalType toPrincipalType()

Implementation

PrincipalType toPrincipalType() {
  switch (this) {
    case 'IAM':
      return PrincipalType.iam;
  }
  throw Exception('$this is not known in enum PrincipalType');
}