toValue method
Implementation
String toValue() {
switch (this) {
case TopicStatus.registered:
return 'Registered';
case TopicStatus.topicNotFound:
return 'Topic not found';
case TopicStatus.failed:
return 'Failed';
case TopicStatus.deleted:
return 'Deleted';
}
}