toDomainStatus method
Implementation
DomainStatus toDomainStatus() {
switch (this) {
case 'PENDING_VERIFICATION':
return DomainStatus.pendingVerification;
case 'IN_PROGRESS':
return DomainStatus.inProgress;
case 'AVAILABLE':
return DomainStatus.available;
case 'PENDING_DEPLOYMENT':
return DomainStatus.pendingDeployment;
case 'FAILED':
return DomainStatus.failed;
case 'CREATING':
return DomainStatus.creating;
case 'REQUESTING_CERTIFICATE':
return DomainStatus.requestingCertificate;
case 'UPDATING':
return DomainStatus.updating;
}
throw Exception('$this is not known in enum DomainStatus');
}