
/* 
 *@author: Ibrahim Albitar 
 *@Date:15/5/2020  
 
 *@param:
{"VisitType":5,
"AdmissionNo":2020004683,
"ProjectID":12,
"LanguageID":2,
"stamp":"2020-04-01T09:41:59.089Z",
"IPAdress":"11.11.11.11",
"VersionID":1.2,
"Channel":9,
"TokenID":"yIwh6wNyUkOeQlJRohWjyw==",
"SessionID":"LlBk8lUEJY",
"IsLoginForDoctorApp":true,
"PatientOutSA":false,
"PatientTypeID":1}

*@return:
 *@desc:
 */

class ProgressNoteRequest {
  int visitType;
  int admissionNo;
  int projectID;
  int languageID;
  String stamp;
  String iPAdress;
  int channel;
  String tokenID;
  String sessionID;
  bool isLoginForDoctorApp;
  bool patientOutSA;
  int patientTypeID;
  double versionID;

  ProgressNoteRequest(
      {this.visitType ,
      this.admissionNo,
      this.projectID = 12,
      this.stamp = '2020-04-23T21:01:21.492Z',
      this.languageID = 2,
      this.iPAdress = '11.11.11.11',
      this.channel = 9,
      this.tokenID ,
      this.sessionID = "LlBk8lUEJY",
      this.isLoginForDoctorApp = true,
      this.patientTypeID = 1,
      this.versionID = 1.2,
      this.patientOutSA = false});

  ProgressNoteRequest.fromJson(Map<String, dynamic> json) {
    visitType = json['VisitType'];
    admissionNo = json['AdmissionNo'];
    projectID = json['ProjectID'];
    stamp = json['stamp'];
    languageID = json['LanguageID'];
    iPAdress = json['IPAdress'];
    channel = json['Channel'];
    tokenID = json['TokenID'];
    sessionID = json['SessionID'];
    isLoginForDoctorApp = json['IsLoginForDoctorApp'];
    patientOutSA = json['PatientOutSA'];
    patientTypeID = json['PatientTypeID'];
    versionID = json['VersionID'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['VisitType'] = this.visitType;
    data['AdmissionNo'] = this.admissionNo;
    data['ProjectID'] = this.projectID;
    data['stamp'] = this.stamp;
    data['LanguageID'] = this.languageID;
    data['IPAdress'] = this.iPAdress;
    data['Channel'] = this.channel;
    data['TokenID'] = this.tokenID;
    data['SessionID'] = this.sessionID;
    data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
    data['PatientOutSA'] = this.patientOutSA;
    data['PatientTypeID'] = this.patientTypeID;
    data['VersionID'] = this.versionID;
    return data;
  }
}