toDomainPackageStatus method
Implementation
DomainPackageStatus toDomainPackageStatus() {
switch (this) {
case 'ASSOCIATING':
return DomainPackageStatus.associating;
case 'ASSOCIATION_FAILED':
return DomainPackageStatus.associationFailed;
case 'ACTIVE':
return DomainPackageStatus.active;
case 'DISSOCIATING':
return DomainPackageStatus.dissociating;
case 'DISSOCIATION_FAILED':
return DomainPackageStatus.dissociationFailed;
}
throw Exception('$this is not known in enum DomainPackageStatus');
}