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.
43 lines
1.4 KiB
Dart
43 lines
1.4 KiB
Dart
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;
|
|
}
|
|
}
|