toAccountRoleStatus method
Implementation
AccountRoleStatus toAccountRoleStatus() {
switch (this) {
case 'READY':
return AccountRoleStatus.ready;
case 'CREATING':
return AccountRoleStatus.creating;
case 'PENDING_DELETION':
return AccountRoleStatus.pendingDeletion;
case 'DELETING':
return AccountRoleStatus.deleting;
case 'DELETED':
return AccountRoleStatus.deleted;
}
throw Exception('$this is not known in enum AccountRoleStatus');
}