class healthData { int MedCategoryID; int MedSubCategoryID; String MachineDate; double Value; int TransactionsListID; String Notes; healthData({ this.MedCategoryID, this.MedSubCategoryID, this.MachineDate, this.Value, this.TransactionsListID, this.Notes, }); healthData.fromJson(Map json) { MedCategoryID = json['MedCategoryID']; MedSubCategoryID = json['MedSubCategoryID']; MachineDate = json['MachineDate']; Value = json['Value']; TransactionsListID = json['TransactionsListID']; Notes = json['Notes']; } Map toJson() { final Map data = new Map(); data['MedCategoryID'] = this.MedCategoryID; data['MedSubCategoryID'] = this.MedSubCategoryID; data['MachineDate'] = this.MachineDate; data['Value'] = this.Value; data['TransactionsListID'] = this.TransactionsListID; data['Notes'] = this.Notes; return data; } }