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