class appointmentCalendarResponse {
  List<Appointments>? appointments;
  String? error;
  String? message;
  int? sessionExists;

  appointmentCalendarResponse({
    this.appointments,
    this.error,
    this.message,
    this.sessionExists,
  });

  appointmentCalendarResponse.fromJson(Map<String, dynamic> json) {
    if (json['appointments'] != null) {
      appointments = <Appointments>[];
      json['appointments'].forEach((v) {
        appointments!.add(new Appointments.fromJson(v));
      });
    }
    error = json['error'];
    message = json['message'];
    sessionExists = json['session_exists'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    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<String, dynamic> 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<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    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;
  }
}
