import 'package:doctor_app_flutter/config/config.dart'; class RequestDoctorReply { int projectID; int doctorID; int transactionNo; int languageID; String stamp; String iPAdress; double versionID; int channel; String tokenID; String sessionID; bool isLoginForDoctorApp; bool patientOutSA; RequestDoctorReply( {this.projectID =15 , this.doctorID =70907 , this.transactionNo = TRANSACTION_NO, this.languageID = LANGUAGE_ID, this.stamp = STAMP, this.iPAdress = IP_ADDRESS, this.versionID = VERSION_ID, this.channel = CHANNEL, this.tokenID ='@dm!n' , this.sessionID = SESSION_ID, this.isLoginForDoctorApp = IS_LOGIN_FOR_DOCTOR_APP, this.patientOutSA = PATIENT_OUT_SA}); RequestDoctorReply.fromJson(Map json) { projectID = json['ProjectID']; doctorID = json['DoctorID']; transactionNo = json['TransactionNo']; 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['ProjectID'] = this.projectID; data['DoctorID'] = this.doctorID; data['TransactionNo'] = this.transactionNo; 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; } }