toMemberPermissions method
Implementation
MemberPermissions toMemberPermissions() {
switch (this) {
case 'read-write':
return MemberPermissions.readWrite;
case 'read-only':
return MemberPermissions.readOnly;
}
throw Exception('$this is not known in enum MemberPermissions');
}