ScheduleResponse.fromJson constructor

ScheduleResponse.fromJson(
  1. Map<String, dynamic> json
)

Creates a new instance of ScheduleResponse from a JSON object.

The JSON object should contain keys that correspond to the parameters of ScheduleResponse.

Implementation

factory ScheduleResponse.fromJson(Map<String, dynamic> json) {
  return ScheduleResponse(
    context: json['@odata.context'],
    value: json['value'] != null
        ? (json['value'] as List)
            .map((i) => ScheduleInformation.fromJson(i))
            .toList()
        : null,
  );
}