class scheduleListResponse { String? error; List? allScheduleServices; String? message; scheduleListResponse({this.error, this.allScheduleServices, this.message}); scheduleListResponse.fromJson(Map json) { error = json['error']; if (json['all_schedule_services'] != null) { allScheduleServices = []; json['all_schedule_services'].forEach((v) { allScheduleServices!.add(new AllScheduleServices.fromJson(v)); }); } message = json['message']; } Map toJson() { final Map data = new Map(); data['error'] = this.error; if (this.allScheduleServices != null) { data['all_schedule_services'] = this.allScheduleServices!.map((v) => v.toJson()).toList(); } data['message'] = this.message; return data; } } class AllScheduleServices { String? id; String? dueDate; String? complaintType; String? comType; String? status; String? amc; String? warranty; AllScheduleServices( {this.id, this.dueDate, this.complaintType, this.comType, this.status, this.amc, this.warranty}); AllScheduleServices.fromJson(Map json) { id = json['id']; dueDate = json['due_date']; complaintType = json['complaint_type']; comType = json['com_type']; status = json['status']; amc = json['amc']; warranty = json['warranty']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['due_date'] = this.dueDate; data['complaint_type'] = this.complaintType; data['com_type'] = this.comType; data['status'] = this.status; data['amc'] = this.amc; data['warranty'] = this.warranty; return data; } }