public function jsonSerialize()
 {
     $pre = parent::jsonSerialize();
     // Return hidden nesting for supplying to server
     $pre['excludeDays'] = !empty($pre['excludeDays']) ? array("excludeDay" => $this->excludeDays) : null;
     return $pre;
 }
 public function jsonSerialize()
 {
     $pre = parent::jsonSerialize();
     if (!empty($this->excludeDaysFlags)) {
         $pre['excludeDaysFlags'] = array("excludeDayFlag" => $this->generateFlagArray());
     }
     return $pre;
 }