toPermissionModels method
Implementation
PermissionModels toPermissionModels() {
switch (this) {
case 'SERVICE_MANAGED':
return PermissionModels.serviceManaged;
case 'SELF_MANAGED':
return PermissionModels.selfManaged;
}
throw Exception('$this is not known in enum PermissionModels');
}