toJson method

Map<String, dynamic> toJson()

Converts the ScheduleResponseModel instance to a JSON map.

Returns a JSON map representation of the ScheduleResponseModel instance.

Implementation

Map<String, dynamic> toJson() => {
      "data": List<dynamic>.from(data.map((x) => x.toJson())),
      "meta": meta?.toJson(),
    };