toTopicRuleDestinationStatus method
Implementation
TopicRuleDestinationStatus toTopicRuleDestinationStatus() {
switch (this) {
case 'ENABLED':
return TopicRuleDestinationStatus.enabled;
case 'IN_PROGRESS':
return TopicRuleDestinationStatus.inProgress;
case 'DISABLED':
return TopicRuleDestinationStatus.disabled;
case 'ERROR':
return TopicRuleDestinationStatus.error;
case 'DELETING':
return TopicRuleDestinationStatus.deleting;
}
throw Exception('$this is not known in enum TopicRuleDestinationStatus');
}