toItemSelection method
Implementation
ItemSelection toItemSelection() {
switch (this) {
case 'none':
return ItemSelection.none;
case 'whitelist':
return ItemSelection.whitelist;
case 'all':
return ItemSelection.all;
}
throw Exception('$this is not known in enum ItemSelection');
}