MealPlan implementation continued
parent
77ab9373f8
commit
d073eb9d5f
@ -0,0 +1,60 @@
|
||||
class GetMealItemsScheduleResponseModel {
|
||||
int itemID;
|
||||
String description;
|
||||
String descriptionN;
|
||||
dynamic comment;
|
||||
dynamic commentN;
|
||||
String imageURL;
|
||||
bool isDefault;
|
||||
int categoryID;
|
||||
String categoryDescription;
|
||||
String categoryDescriptionN;
|
||||
int scheduleID;
|
||||
int cal;
|
||||
|
||||
GetMealItemsScheduleResponseModel(
|
||||
{this.itemID,
|
||||
this.description,
|
||||
this.descriptionN,
|
||||
this.comment,
|
||||
this.commentN,
|
||||
this.imageURL,
|
||||
this.isDefault,
|
||||
this.categoryID,
|
||||
this.categoryDescription,
|
||||
this.categoryDescriptionN,
|
||||
this.scheduleID,
|
||||
this.cal});
|
||||
|
||||
GetMealItemsScheduleResponseModel.fromJson(Map<String, dynamic> json) {
|
||||
itemID = json['ItemID'];
|
||||
description = json['Description'];
|
||||
descriptionN = json['DescriptionN'];
|
||||
comment = json['Comment'];
|
||||
commentN = json['CommentN'];
|
||||
imageURL = json['ImageURL'];
|
||||
isDefault = json['IsDefault'];
|
||||
categoryID = json['CategoryID'];
|
||||
categoryDescription = json['CategoryDescription'];
|
||||
categoryDescriptionN = json['CategoryDescriptionN'];
|
||||
scheduleID = json['ScheduleID'];
|
||||
cal = json['cal'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['ItemID'] = this.itemID;
|
||||
data['Description'] = this.description;
|
||||
data['DescriptionN'] = this.descriptionN;
|
||||
data['Comment'] = this.comment;
|
||||
data['CommentN'] = this.commentN;
|
||||
data['ImageURL'] = this.imageURL;
|
||||
data['IsDefault'] = this.isDefault;
|
||||
data['CategoryID'] = this.categoryID;
|
||||
data['CategoryDescription'] = this.categoryDescription;
|
||||
data['CategoryDescriptionN'] = this.categoryDescriptionN;
|
||||
data['ScheduleID'] = this.scheduleID;
|
||||
data['cal'] = this.cal;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue