def from_json(cls, jdict): """Converts the meeting time from a json dictionary. Args: jdict: The json dictionary to convert from. Returns: cls: A course object as specified by `jdict`. """ # Retrive time range and weekdays timerange = TimeRange.from_json(jdict['timerange']) weekdays = jdict['weekdays'] return cls(timerange, weekdays)