ScheduleItem.fromJson constructor
Creates a new instance of ScheduleItem from a JSON object.
The JSON object should contain keys that correspond to the parameters of ScheduleItem.
Implementation
factory ScheduleItem.fromJson(Map<String, dynamic> json) {
return ScheduleItem(
isPrivate: json['isPrivate'],
status: json['status'],
subject: json['subject'],
location: json['location'],
start: json['start'] != null ? Time.fromJson(json['start']) : null,
end: json['end'] != null ? Time.fromJson(json['end']) : null,
);
}