class InsuranceCompaniesSchemeModel { String setupID; int projectID; int companyID; int subCategoryID; String subCategoryDesc; String subCategoryDescN; String validFrom; String validTo; var isInpatient; int roomCategory; bool isActive; int createdBy; String createdOn; int editedBy; String editedOn; InsuranceCompaniesSchemeModel( {this.setupID, this.projectID, this.companyID, this.subCategoryID, this.subCategoryDesc, this.subCategoryDescN, this.validFrom, this.validTo, this.isInpatient, this.roomCategory, this.isActive, this.createdBy, this.createdOn, this.editedBy, this.editedOn}); InsuranceCompaniesSchemeModel.fromJson(Map json) { setupID = json['SetupID']; projectID = json['ProjectID']; companyID = json['CompanyID']; subCategoryID = json['SubCategoryID']; subCategoryDesc = json['SubCategoryDesc']; subCategoryDescN = json['SubCategoryDescN']; validFrom = json['ValidFrom']; validTo = json['ValidTo']; isInpatient = json['IsInpatient']; roomCategory = json['RoomCategory']; isActive = json['IsActive']; createdBy = json['CreatedBy']; createdOn = json['CreatedOn']; editedBy = json['EditedBy']; editedOn = json['EditedOn']; } Map toJson() { final Map data = new Map(); data['SetupID'] = this.setupID; data['ProjectID'] = this.projectID; data['CompanyID'] = this.companyID; data['SubCategoryID'] = this.subCategoryID; data['SubCategoryDesc'] = this.subCategoryDesc; data['SubCategoryDescN'] = this.subCategoryDescN; data['ValidFrom'] = this.validFrom; data['ValidTo'] = this.validTo; data['IsInpatient'] = this.isInpatient; data['RoomCategory'] = this.roomCategory; data['IsActive'] = this.isActive; data['CreatedBy'] = this.createdBy; data['CreatedOn'] = this.createdOn; data['EditedBy'] = this.editedBy; data['EditedOn'] = this.editedOn; return data; } }