class LabOrdersReqModel { int patientID; int patientTypeID; int projectID; int languageID; String stamp; String iPAdress; double versionID; int channel; String tokenID; String sessionID; bool isLoginForDoctorApp; bool patientOutSA; LabOrdersReqModel( {this.patientID, this.patientTypeID, this.projectID, this.languageID, this.tokenID, this.stamp = '2020-04-26T09:32:18.317Z', this.iPAdress='11.11.11.11', this.versionID=1.2, this.channel=9, this.sessionID='E2bsEeYEJo', this.isLoginForDoctorApp =true, this.patientOutSA=false}); LabOrdersReqModel.fromJson(Map json) { patientID = json['PatientID']; patientTypeID = json['PatientTypeID']; projectID = json['ProjectID']; 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 toJson() { final Map data = new Map(); data['PatientID'] = this.patientID; data['PatientTypeID'] = this.patientTypeID; data['ProjectID'] = this.projectID; 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; } }