toDomainStatus method
Implementation
DomainStatus toDomainStatus() {
switch (this) {
case 'PENDING_VALIDATION':
return DomainStatus.pendingValidation;
case 'SUCCESS':
return DomainStatus.success;
case 'FAILED':
return DomainStatus.failed;
}
throw Exception('$this is not known in enum DomainStatus');
}