toFolderName method

FolderName toFolderName()

Implementation

FolderName toFolderName() {
  switch (this) {
    case 'INBOX':
      return FolderName.inbox;
    case 'DELETED_ITEMS':
      return FolderName.deletedItems;
    case 'SENT_ITEMS':
      return FolderName.sentItems;
    case 'DRAFTS':
      return FolderName.drafts;
    case 'JUNK_EMAIL':
      return FolderName.junkEmail;
  }
  throw Exception('$this is not known in enum FolderName');
}