toVisibility method
Implementation
Visibility toVisibility() {
switch (this) {
case 'PUBLIC':
return Visibility.public;
case 'PRIVATE':
return Visibility.private;
}
throw Exception('$this is not known in enum Visibility');
}