import 'package:json_annotation/json_annotation.dart';
import 'package:location/data/bean/goods_bean.dart';

import '../../bean/goods_evaluate_info.dart';
import '../../bean/pay_item_bean.dart';

part 'item_list_response.g.dart';

@JsonSerializable()
class ItemListResponse {
  @JsonKey(name: "list")
  List<GoodsBean>? goodsList;

  @JsonKey(name: "payOptions")
  List<PayItemBean>? payInfoList;

  @JsonKey(name: "evaluateList")
  List<GoodsEvaluateInfo>? evaluateList;

  ItemListResponse(this.goodsList, this.payInfoList);

  factory ItemListResponse.fromJson(Map<String, dynamic> json) =>
      _$ItemListResponseFromJson(json);
}
