class ScheduleAppointmentRequestModel {
  final String generalId;
  final String fileNo;
  final String appointmentNo;
  final String doctorId;
  final String appointmentDate;
  final String mobileNumber;
  final int projectId;
  final int clinicId;

  ScheduleAppointmentRequestModel({
    required this.generalId,
    required this.fileNo,
    required this.appointmentNo,
    required this.doctorId,
    required this.appointmentDate,
    required this.mobileNumber,
    required this.projectId,
    required this.clinicId,
  });

  Map<String, dynamic> toJson() {
    return {
      'generalId': generalId,
      'fileNo': fileNo,
      'appointmentNo': appointmentNo,
      'doctorId': doctorId,
      'appointmentDate': appointmentDate,
      'mobileNumber': mobileNumber,
      'projectId': projectId,
      'clinicId': clinicId,
    };
  }

  factory ScheduleAppointmentRequestModel.fromJson(Map<String, dynamic> json) {
    return ScheduleAppointmentRequestModel(
      generalId: json['generalId'] ?? '',
      fileNo: json['fileNo'] ?? '',
      appointmentNo: json['appointmentNo'] ?? '',
      doctorId: json['doctorId'] ?? '',
      appointmentDate: json['appointmentDate'] ?? '',
      mobileNumber: json['mobileNumber'] ?? '',
      projectId: json['projectId'] ?? 0,
      clinicId: json['clinicId'] ?? 0,
    );
  }
}

