import 'package:doctor_app_flutter/config/config.dart';

class RequestMyReferralPatientModel {
  int projectID;
  int clinicID;
  int doctorID;
  String firstName;
  String middleName;
  String lastName;
  String patientMobileNumber;
  String patientIdentificationID;
  int patientID;
  String from;
  String to;
  int languageID;
  String stamp;
  String iPAdress;
  double versionID;
  int channel;
  String tokenID;
  String sessionID;
  bool isLoginForDoctorApp;
  bool patientOutSA;

  RequestMyReferralPatientModel(
      {this.projectID,
      this.clinicID,
      this.doctorID,
      this.firstName = "0",
      this.middleName = "0",
      this.lastName = "0",
      this.patientMobileNumber = "0",
      this.patientIdentificationID = "0",
      this.patientID = 0,
      this.from = "0",
      this.to = "0",
      this.languageID ,
      this.stamp ,
      this.iPAdress ,
      this.versionID ,
      this.channel ,
      this.tokenID,
      this.sessionID ,
      this.isLoginForDoctorApp ,
      this.patientOutSA });

  RequestMyReferralPatientModel.fromJson(Map<String, dynamic> json) {
    projectID = json['ProjectID'];
    clinicID = json['ClinicID'];
    doctorID = json['DoctorID'];
    firstName = json['FirstName'];
    middleName = json['MiddleName'];
    lastName = json['LastName'];
    patientMobileNumber = json['PatientMobileNumber'];
    patientIdentificationID = json['PatientIdentificationID'];
    patientID = json['PatientID'];
    from = json['From'];
    to = json['To'];
    languageID = json['LanguageID'];
    stamp = json['stamp'];
    iPAdress = json['IPAdress'];
    versionID = json['VersionID'];
    channel = json['Channel'];
    tokenID = json['TokenID'];
    sessionID = json['SessionID'];
    isLoginForDoctorApp = json['IsLoginForDoctorApp'];
    patientOutSA = json['PatientOutSA'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['ProjectID'] = this.projectID;
    data['ClinicID'] = this.clinicID;
    data['DoctorID'] = this.doctorID;
    data['FirstName'] = this.firstName;
    data['MiddleName'] = this.middleName;
    data['LastName'] = this.lastName;
    data['PatientMobileNumber'] = this.patientMobileNumber;
    data['PatientIdentificationID'] = this.patientIdentificationID;
    data['PatientID'] = this.patientID;
    data['From'] = this.from;
    data['To'] = this.to;
    data['LanguageID'] = this.languageID;
    data['stamp'] = this.stamp;
    data['IPAdress'] = this.iPAdress;
    data['VersionID'] = this.versionID;
    data['Channel'] = this.channel;
    data['TokenID'] = this.tokenID;
    data['SessionID'] = this.sessionID;
    data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
    data['PatientOutSA'] = this.patientOutSA;
    return data;
  }
}
