import 'package:huixiang/generated/json/base/json_field.dart'; import 'package:huixiang/generated/json/set_meal_data.g.dart'; import 'dart:convert'; export 'package:huixiang/generated/json/set_meal_data.g.dart'; @JsonSerializable() class SetMealData { String? groupName = ''; List? productInfoList = []; SetMealData(); factory SetMealData.fromJson(Map json) => $SetMealDataFromJson(json); Map toJson() => $SetMealDataToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class ProductInfoList { String? skuId = ''; String? skuName = ''; int? buyNumber = 0; String? productId = ''; double? sellPrice; String? productName = ''; ProductInfoList(); factory ProductInfoList.fromJson(Map json) => $ProductInfoListFromJson(json); Map toJson() => $ProductInfoListToJson(this); @override String toString() { return jsonEncode(this); } }