toThesaurusStatus method

ThesaurusStatus toThesaurusStatus()

Implementation

ThesaurusStatus toThesaurusStatus() {
  switch (this) {
    case 'CREATING':
      return ThesaurusStatus.creating;
    case 'ACTIVE':
      return ThesaurusStatus.active;
    case 'DELETING':
      return ThesaurusStatus.deleting;
    case 'UPDATING':
      return ThesaurusStatus.updating;
    case 'ACTIVE_BUT_UPDATE_FAILED':
      return ThesaurusStatus.activeButUpdateFailed;
    case 'FAILED':
      return ThesaurusStatus.failed;
  }
  throw Exception('$this is not known in enum ThesaurusStatus');
}