toConfluenceSpaceFieldName method

ConfluenceSpaceFieldName toConfluenceSpaceFieldName()

Implementation

ConfluenceSpaceFieldName toConfluenceSpaceFieldName() {
  switch (this) {
    case 'DISPLAY_URL':
      return ConfluenceSpaceFieldName.displayUrl;
    case 'ITEM_TYPE':
      return ConfluenceSpaceFieldName.itemType;
    case 'SPACE_KEY':
      return ConfluenceSpaceFieldName.spaceKey;
    case 'URL':
      return ConfluenceSpaceFieldName.url;
  }
  throw Exception('$this is not known in enum ConfluenceSpaceFieldName');
}