toPermissions method

Permissions toPermissions()

Implementation

Permissions toPermissions() {
  switch (this) {
    case 'owner':
      return Permissions.owner;
    case 'read-write':
      return Permissions.readWrite;
    case 'read-only':
      return Permissions.readOnly;
  }
  throw Exception('$this is not known in enum Permissions');
}