toPropertyKey method

PropertyKey toPropertyKey()

Implementation

PropertyKey toPropertyKey() {
  switch (this) {
    case 'OWNER':
      return PropertyKey.owner;
    case 'LAUNCH_ROLE':
      return PropertyKey.launchRole;
  }
  throw Exception('$this is not known in enum PropertyKey');
}