toAllowedOperation method
Implementation
AllowedOperation toAllowedOperation() {
switch (this) {
case 'CreateGrant':
return AllowedOperation.createGrant;
case 'CheckoutLicense':
return AllowedOperation.checkoutLicense;
case 'CheckoutBorrowLicense':
return AllowedOperation.checkoutBorrowLicense;
case 'CheckInLicense':
return AllowedOperation.checkInLicense;
case 'ExtendConsumptionLicense':
return AllowedOperation.extendConsumptionLicense;
case 'ListPurchasedLicenses':
return AllowedOperation.listPurchasedLicenses;
case 'CreateToken':
return AllowedOperation.createToken;
}
throw Exception('$this is not known in enum AllowedOperation');
}