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 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 toJson() { final Map data = new Map(); 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 getMealItemsScheduleResponseModelList = []; // int selectedItemID = 0; final ValueNotifier selectedItemID = ValueNotifier(0); GetMealItemsScheduleResponseModelList({this.filterName, GetMealItemsScheduleResponseModel? getMealItemsScheduleResponseModel}) { getMealItemsScheduleResponseModelList.add(getMealItemsScheduleResponseModel!); } }