Meal Plan APIs implementation continued
parent
710e6274db
commit
77ab9373f8
@ -0,0 +1,42 @@
|
||||
class GetMealsScheduleResponseModel {
|
||||
int scheduleID;
|
||||
int mealID;
|
||||
String description;
|
||||
String descriptionN;
|
||||
int weekID;
|
||||
String weekDescription;
|
||||
String weekDescriptionN;
|
||||
String tAT;
|
||||
int dietTypeID;
|
||||
int dayID;
|
||||
|
||||
GetMealsScheduleResponseModel({this.scheduleID, this.mealID, this.description, this.descriptionN, this.weekID, this.weekDescription, this.weekDescriptionN, this.tAT, this.dietTypeID, this.dayID});
|
||||
|
||||
GetMealsScheduleResponseModel.fromJson(Map<String, dynamic> json) {
|
||||
scheduleID = json['ScheduleID'];
|
||||
mealID = json['MealID'];
|
||||
description = json['Description'];
|
||||
descriptionN = json['DescriptionN'];
|
||||
weekID = json['WeekID'];
|
||||
weekDescription = json['WeekDescription'];
|
||||
weekDescriptionN = json['WeekDescriptionN'];
|
||||
tAT = json['TAT'];
|
||||
dietTypeID = json['DietTypeID'];
|
||||
dayID = json['DayID'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['ScheduleID'] = this.scheduleID;
|
||||
data['MealID'] = this.mealID;
|
||||
data['Description'] = this.description;
|
||||
data['DescriptionN'] = this.descriptionN;
|
||||
data['WeekID'] = this.weekID;
|
||||
data['WeekDescription'] = this.weekDescription;
|
||||
data['WeekDescriptionN'] = this.weekDescriptionN;
|
||||
data['TAT'] = this.tAT;
|
||||
data['DietTypeID'] = this.dietTypeID;
|
||||
data['DayID'] = this.dayID;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue