class appointmentCalendarResponse { List? appointments; String? error; String? message; int? sessionExists; appointmentCalendarResponse({ this.appointments, this.error, this.message, this.sessionExists, }); appointmentCalendarResponse.fromJson(Map json) { if (json['appointments'] != null) { appointments = []; json['appointments'].forEach((v) { appointments!.add(new Appointments.fromJson(v)); }); } error = json['error']; message = json['message']; sessionExists = json['session_exists']; } Map toJson() { final Map data = new Map(); if (this.appointments != null) { data['appointments'] = this.appointments!.map((v) => v.toJson()).toList(); } data['error'] = this.error; data['message'] = this.message; data['session_exists'] = this.sessionExists; return data; } } class Appointments { String? empId; String? id; String? leadId; String? appDate; String? name; String? product; String? mob1; Appointments({ this.empId, this.id, this.leadId, this.appDate, this.name, this.product, this.mob1, }); Appointments.fromJson(Map json) { empId = json['emp_id']; id = json['id']; leadId = json['lead_id']; appDate = json['app_date']; name = json['name']; product = json['product']; mob1 = json['mob1']; } Map toJson() { final Map data = new Map(); data['emp_id'] = this.empId; data['id'] = this.id; data['lead_id'] = this.leadId; data['app_date'] = this.appDate; data['name'] = this.name; data['product'] = this.product; data['mob1'] = this.mob1; return data; } }