class DoctorResponseModel {
  int? projectID;
  int? transactionNo;
  int? patientID;
  int? doctorID;
  int? requestType;
  String? requestTypeDescription;
  dynamic requestTypeDescriptionN;
  int? status;
  String? remarks;
  String? createdOn;
  int? readStatus;
  String? doctorResponse;
  dynamic clinicID;
  dynamic clinicName;
  int? createdBy;
  String? doctorName;
  dynamic infoStatusDescription;
  bool? isDoctorRespond;
  bool? isPatientRead;
  dynamic memberName;
  dynamic memberNameN;
  dynamic patientDateofBirth;
  dynamic patientGender;
  dynamic patientMobileNumber;
  dynamic patientName;
  dynamic patientNameN;
  dynamic projectName;
  dynamic statusDescription;
  List<Transactions>? transactions;

  DoctorResponseModel(
      {this.projectID,
        this.transactionNo,
        this.patientID,
        this.doctorID,
        this.requestType,
        this.requestTypeDescription,
        this.requestTypeDescriptionN,
        this.status,
        this.remarks,
        this.createdOn,
        this.readStatus,
        this.doctorResponse,
        this.clinicID,
        this.clinicName,
        this.createdBy,
        this.doctorName,
        this.infoStatusDescription,
        this.isDoctorRespond,
        this.isPatientRead,
        this.memberName,
        this.memberNameN,
        this.patientDateofBirth,
        this.patientGender,
        this.patientMobileNumber,
        this.patientName,
        this.patientNameN,
        this.projectName,
        this.statusDescription,
        this.transactions});

  DoctorResponseModel.fromJson(Map<String, dynamic> json) {
    projectID = json['ProjectID'];
    transactionNo = json['TransactionNo'];
    patientID = json['PatientID'];
    doctorID = json['DoctorID'];
    requestType = json['RequestType'];
    requestTypeDescription = json['RequestTypeDescription'];
    requestTypeDescriptionN = json['RequestTypeDescriptionN'];
    status = json['Status'];
    remarks = json['Remarks'];
    createdOn = json['CreatedOn'];
    readStatus = json['ReadStatus'];
    doctorResponse = json['DoctorResponse'];
    clinicID = json['ClinicID'];
    clinicName = json['ClinicName'];
    createdBy = json['CreatedBy'];
    doctorName = json['DoctorName'];
    infoStatusDescription = json['InfoStatusDescription'];
    isDoctorRespond = json['IsDoctorRespond'];
    isPatientRead = json['IsPatientRead'];
    memberName = json['MemberName'];
    memberNameN = json['MemberNameN'];
    patientDateofBirth = json['PatientDateofBirth'];
    patientGender = json['PatientGender'];
    patientMobileNumber = json['PatientMobileNumber'];
    patientName = json['PatientName'];
    patientNameN = json['PatientNameN'];
    projectName = json['ProjectName'];
    statusDescription = json['StatusDescription'];
    if (json['Transactions'] != null) {
      transactions = <Transactions>[];
      json['Transactions'].forEach((v) {
        transactions!.add(new Transactions.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['ProjectID'] = this.projectID;
    data['TransactionNo'] = this.transactionNo;
    data['PatientID'] = this.patientID;
    data['DoctorID'] = this.doctorID;
    data['RequestType'] = this.requestType;
    data['RequestTypeDescription'] = this.requestTypeDescription;
    data['RequestTypeDescriptionN'] = this.requestTypeDescriptionN;
    data['Status'] = this.status;
    data['Remarks'] = this.remarks;
    data['CreatedOn'] = this.createdOn;
    data['ReadStatus'] = this.readStatus;
    data['DoctorResponse'] = this.doctorResponse;
    data['ClinicID'] = this.clinicID;
    data['ClinicName'] = this.clinicName;
    data['CreatedBy'] = this.createdBy;
    data['DoctorName'] = this.doctorName;
    data['InfoStatusDescription'] = this.infoStatusDescription;
    data['IsDoctorRespond'] = this.isDoctorRespond;
    data['IsPatientRead'] = this.isPatientRead;
    data['MemberName'] = this.memberName;
    data['MemberNameN'] = this.memberNameN;
    data['PatientDateofBirth'] = this.patientDateofBirth;
    data['PatientGender'] = this.patientGender;
    data['PatientMobileNumber'] = this.patientMobileNumber;
    data['PatientName'] = this.patientName;
    data['PatientNameN'] = this.patientNameN;
    data['ProjectName'] = this.projectName;
    data['StatusDescription'] = this.statusDescription;
    if (this.transactions != null) {
      data['Transactions'] = this.transactions!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class Transactions {
  int? lineItemNo;
  String? doctorResponse;
  int? infoEnteredBy;
  String? infoEnteredOn;
  String? createdOn;
  int? infoStatus;
  String? infoStatusDescription;
  dynamic infoStatusDescriptionN;

  Transactions(
      {this.lineItemNo,
        this.doctorResponse,
        this.infoEnteredBy,
        this.infoEnteredOn,
        this.createdOn,
        this.infoStatus,
        this.infoStatusDescription,
        this.infoStatusDescriptionN});

  Transactions.fromJson(Map<String, dynamic> json) {
    lineItemNo = json['LineItemNo'];
    doctorResponse = json['DoctorResponse'];
    infoEnteredBy = json['InfoEnteredBy'];
    infoEnteredOn = json['InfoEnteredOn'];
    createdOn = json['CreatedOn'];
    infoStatus = json['InfoStatus'];
    infoStatusDescription = json['InfoStatusDescription'];
    infoStatusDescriptionN = json['InfoStatusDescriptionN'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['LineItemNo'] = this.lineItemNo;
    data['DoctorResponse'] = this.doctorResponse;
    data['InfoEnteredBy'] = this.infoEnteredBy;
    data['InfoEnteredOn'] = this.infoEnteredOn;
    data['CreatedOn'] = this.createdOn;
    data['InfoStatus'] = this.infoStatus;
    data['InfoStatusDescription'] = this.infoStatusDescription;
    data['InfoStatusDescriptionN'] = this.infoStatusDescriptionN;
    return data;
  }
}
