code: private void readPattern(JSONObject patternJson) {
  
          setPatternType(readPatternType(patternJson));
          setInterval(readOptionalInt(patternJson, JsonKey.PATTERN_INTERVAL));
          setWeekDays(readWeekDays(patternJson));
          setDayOfMonth(readOptionalInt(patternJson, JsonKey.PATTERN_DAY_OF_MONTH));
          setEveryWorkingDay(readOptionalBoolean(patternJson, JsonKey.PATTERN_EVERYWORKINGDAY));
          setWeeksOfMonth(readWeeksOfMonth(patternJson));
          setIndividualDates(readDates(readOptionalArray(patternJson, JsonKey.PATTERN_DATES)));
          setMonth(readOptionalMonth(patternJson, JsonKey.PATTERN_MONTH));
  
      }
docs: Read pattern information from the provided JSON object.
  @param patternJson the JSON object containing the pattern information.