import 'package:doctor_app_flutter/util/helpers.dart';



class ListGtMyPatientsQuestions {
  String setupID;
  int projectID;
  int transactionNo;
  int patientType;
  int patientID;
  int doctorID;
  int requestType;
  DateTime requestDate;
  String requestTime;
  String remarks;
  int status;
  int createdBy;
  String createdOn;
  int editedBy;
  String editedOn;
  String patientName;
  Null patientNameN;
  int gender;
  String dateofBirth;
  String mobileNumber;
  String emailAddress;
  String doctorResponse;
  String infoStatus;
  Null clinicID;
  String age;
  String genderDescription;
  bool isVidaCall;

  ListGtMyPatientsQuestions(
      {this.setupID,
        this.projectID,
        this.transactionNo,
        this.patientType,
        this.patientID,
        this.doctorID,
        this.requestType,
        this.requestDate,
        this.requestTime,
        this.remarks,
        this.status,
        this.createdBy,
        this.createdOn,
        this.editedBy,
        this.editedOn,
        this.patientName,
        this.patientNameN,
        this.gender,
        this.dateofBirth,
        this.mobileNumber,
        this.emailAddress,
        this.doctorResponse,
        this.infoStatus,
        this.clinicID,
        this.age,
        this.genderDescription,
        this.isVidaCall});

  ListGtMyPatientsQuestions.fromJson(Map<String, dynamic> json) {
    setupID = json['SetupID'];
    projectID = json['ProjectID'];
    transactionNo = json['TransactionNo'];
    patientType = json['PatientType'];
    patientID = json['PatientID'];
    doctorID = json['DoctorID'];
    requestType = json['RequestType'];
    requestDate = Helpers.convertStringToDate(json['RequestDate']) ;

    requestTime = json['RequestTime'];
    remarks = json['Remarks'];
    status = json['Status'];
    createdBy = json['CreatedBy'];
    createdOn = json['CreatedOn'];
    editedBy = json['EditedBy'];
    editedOn = json['EditedOn'];
    patientName = json['PatientName'];
    patientNameN = json['PatientNameN'];
    gender = json['Gender'];
    dateofBirth = json['DateofBirth'];
    mobileNumber = json['MobileNumber'];
    emailAddress = json['EmailAddress'];
    doctorResponse = json['DoctorResponse'];
    infoStatus = json['InfoStatus'];
    clinicID = json['ClinicID'];
    age = json['Age'];
    genderDescription = json['GenderDescription'];
    isVidaCall = json['IsVidaCall'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['SetupID'] = this.setupID;
    data['ProjectID'] = this.projectID;
    data['TransactionNo'] = this.transactionNo;
    data['PatientType'] = this.patientType;
    data['PatientID'] = this.patientID;
    data['DoctorID'] = this.doctorID;
    data['RequestType'] = this.requestType;
    data['RequestDate'] = this.requestDate;
    data['RequestTime'] = this.requestTime;
    data['Remarks'] = this.remarks;
    data['Status'] = this.status;
    data['CreatedBy'] = this.createdBy;
    data['CreatedOn'] = this.createdOn;
    data['EditedBy'] = this.editedBy;
    data['EditedOn'] = this.editedOn;
    data['PatientName'] = this.patientName;
    data['PatientNameN'] = this.patientNameN;
    data['Gender'] = this.gender;
    data['DateofBirth'] = this.dateofBirth;
    data['MobileNumber'] = this.mobileNumber;
    data['EmailAddress'] = this.emailAddress;
    data['DoctorResponse'] = this.doctorResponse;
    data['InfoStatus'] = this.infoStatus;
    data['ClinicID'] = this.clinicID;
    data['Age'] = this.age;
    data['GenderDescription'] = this.genderDescription;
    data['IsVidaCall'] = this.isVidaCall;
    return data;
  }
}
