code: public static JinxConstants.SafetyLevel flickrSafetyLevelIdToSafetyLevel(int level) {
          JinxConstants.SafetyLevel ret;
          switch (level) {
              case 1:
                  ret = JinxConstants.SafetyLevel.safe;
                  break;
              case 2:
                  ret = JinxConstants.SafetyLevel.moderate;
                  break;
              case 3:
                  ret = JinxConstants.SafetyLevel.restricted;
                  break;
              default:
                  ret = null;
                  break;
          }
          return ret;
      }
docs: Convert a Flickr safety level id to the corresponding {@link net.jeremybrooks.jinx.JinxConstants.SafetyLevel} enum.
  
  @param level Flickr safety level id to convert.
  @return corresponding SafetyLevel enum, or null if the parameter is not a valid Flickr safety level id.