toConfluenceBlogFieldName method

ConfluenceBlogFieldName toConfluenceBlogFieldName()

Implementation

ConfluenceBlogFieldName toConfluenceBlogFieldName() {
  switch (this) {
    case 'AUTHOR':
      return ConfluenceBlogFieldName.author;
    case 'DISPLAY_URL':
      return ConfluenceBlogFieldName.displayUrl;
    case 'ITEM_TYPE':
      return ConfluenceBlogFieldName.itemType;
    case 'LABELS':
      return ConfluenceBlogFieldName.labels;
    case 'PUBLISH_DATE':
      return ConfluenceBlogFieldName.publishDate;
    case 'SPACE_KEY':
      return ConfluenceBlogFieldName.spaceKey;
    case 'SPACE_NAME':
      return ConfluenceBlogFieldName.spaceName;
    case 'URL':
      return ConfluenceBlogFieldName.url;
    case 'VERSION':
      return ConfluenceBlogFieldName.version;
  }
  throw Exception('$this is not known in enum ConfluenceBlogFieldName');
}