toResourceShareAssociationStatus method
Implementation
ResourceShareAssociationStatus toResourceShareAssociationStatus() {
switch (this) {
case 'ASSOCIATING':
return ResourceShareAssociationStatus.associating;
case 'ASSOCIATED':
return ResourceShareAssociationStatus.associated;
case 'FAILED':
return ResourceShareAssociationStatus.failed;
case 'DISASSOCIATING':
return ResourceShareAssociationStatus.disassociating;
case 'DISASSOCIATED':
return ResourceShareAssociationStatus.disassociated;
}
throw Exception(
'$this is not known in enum ResourceShareAssociationStatus');
}