toConfluenceAttachmentFieldName method

ConfluenceAttachmentFieldName toConfluenceAttachmentFieldName()

Implementation

ConfluenceAttachmentFieldName toConfluenceAttachmentFieldName() {
  switch (this) {
    case 'AUTHOR':
      return ConfluenceAttachmentFieldName.author;
    case 'CONTENT_TYPE':
      return ConfluenceAttachmentFieldName.contentType;
    case 'CREATED_DATE':
      return ConfluenceAttachmentFieldName.createdDate;
    case 'DISPLAY_URL':
      return ConfluenceAttachmentFieldName.displayUrl;
    case 'FILE_SIZE':
      return ConfluenceAttachmentFieldName.fileSize;
    case 'ITEM_TYPE':
      return ConfluenceAttachmentFieldName.itemType;
    case 'PARENT_ID':
      return ConfluenceAttachmentFieldName.parentId;
    case 'SPACE_KEY':
      return ConfluenceAttachmentFieldName.spaceKey;
    case 'SPACE_NAME':
      return ConfluenceAttachmentFieldName.spaceName;
    case 'URL':
      return ConfluenceAttachmentFieldName.url;
    case 'VERSION':
      return ConfluenceAttachmentFieldName.version;
  }
  throw Exception('$this is not known in enum ConfluenceAttachmentFieldName');
}