toDomainStatus method
Implementation
DomainStatus toDomainStatus() {
switch (this) {
case 'PENDING_VALIDATION':
return DomainStatus.pendingValidation;
case 'ASSOCIATING':
return DomainStatus.associating;
case 'ACTIVE':
return DomainStatus.active;
case 'INACTIVE':
return DomainStatus.inactive;
case 'DISASSOCIATING':
return DomainStatus.disassociating;
case 'DISASSOCIATED':
return DomainStatus.disassociated;
case 'FAILED_TO_ASSOCIATE':
return DomainStatus.failedToAssociate;
case 'FAILED_TO_DISASSOCIATE':
return DomainStatus.failedToDisassociate;
}
throw Exception('$this is not known in enum DomainStatus');
}