toParentType method

ParentType toParentType()

Implementation

ParentType toParentType() {
  switch (this) {
    case 'ROOT':
      return ParentType.root;
    case 'ORGANIZATIONAL_UNIT':
      return ParentType.organizationalUnit;
  }
  throw Exception('$this is not known in enum ParentType');
}