toTopicStatus method

TopicStatus toTopicStatus()

Implementation

TopicStatus toTopicStatus() {
  switch (this) {
    case 'Registered':
      return TopicStatus.registered;
    case 'Topic not found':
      return TopicStatus.topicNotFound;
    case 'Failed':
      return TopicStatus.failed;
    case 'Deleted':
      return TopicStatus.deleted;
  }
  throw Exception('$this is not known in enum TopicStatus');
}