static LockScope? fromName(String name) => LockScope.values.where((e) => e.name == name).firstOrNull;