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.
PatientApp-KKUMC/lib/models/InPatientServices/get_meal_items_schedule_res...

75 lines
2.2 KiB
Dart

import 'package:flutter/material.dart';
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;
}
}
class GetMealItemsScheduleResponseModelList {
String filterName = "";
List<GetMealItemsScheduleResponseModel> getMealItemsScheduleResponseModelList = [];
// int selectedItemID = 0;
final ValueNotifier<int> selectedItemID = ValueNotifier(0);
GetMealItemsScheduleResponseModelList({this.filterName, GetMealItemsScheduleResponseModel getMealItemsScheduleResponseModel}) {
getMealItemsScheduleResponseModelList.add(getMealItemsScheduleResponseModel);
}
}