You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
908 B
Dart
37 lines
908 B
Dart
class YearlyStepsResModel {
|
|
double valueSum;
|
|
int medCategoryID;
|
|
int month;
|
|
String monthName;
|
|
int patientID;
|
|
int year;
|
|
|
|
YearlyStepsResModel(
|
|
{this.valueSum,
|
|
this.medCategoryID,
|
|
this.month,
|
|
this.monthName,
|
|
this.patientID,
|
|
this.year});
|
|
|
|
YearlyStepsResModel.fromJson(Map<String, dynamic> json) {
|
|
valueSum = json['ValueSum'];
|
|
medCategoryID = json['MedCategoryID'];
|
|
month = json['Month'];
|
|
monthName = json['MonthName'];
|
|
patientID = json['PatientID'];
|
|
year = json['Year'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['ValueSum'] = this.valueSum;
|
|
data['MedCategoryID'] = this.medCategoryID;
|
|
data['Month'] = this.month;
|
|
data['MonthName'] = this.monthName;
|
|
data['PatientID'] = this.patientID;
|
|
data['Year'] = this.year;
|
|
return data;
|
|
}
|
|
}
|