ScheduleInformation.fromJson constructor
Creates a new instance of ScheduleInformation from a JSON object.
The JSON object should contain keys that correspond to the parameters of ScheduleInformation.
Implementation
factory ScheduleInformation.fromJson(Map<String, dynamic> json) {
return ScheduleInformation(
scheduleId: json['scheduleId'],
availabilityView: json['availabilityView'],
scheduleItems: json['scheduleItems'] != null
? (json['scheduleItems'] as List)
.map((i) => ScheduleItem.fromJson(i))
.toList()
: null,
workingHours: json['workingHours'] != null
? WorkingHours.fromJson(json['workingHours'])
: null,
);
}