Updated with core Schedule.toJSONObject TimeRanges null issue