You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
985 B

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>? productInfoList = [];
SetMealData();
factory SetMealData.fromJson(Map<String, dynamic> json) => $SetMealDataFromJson(json);
Map<String, dynamic> 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<String, dynamic> json) => $ProductInfoListFromJson(json);
Map<String, dynamic> toJson() => $ProductInfoListToJson(this);
@override
String toString() {
return jsonEncode(this);
}
}