import 'package:json_annotation/json_annotation.dart';
import 'orderStatus.dart';
import "cartInfo.dart";
part 'orderData.g.dart';

@JsonSerializable()
class OrderData {
    OrderData();

    num add_time;
    num seckill_id;
    num bargain_id;
    num combination_id;
    num id;
    String order_id;
    String pay_price;
    num total_num;
    String total_price;
    String pay_postage;
    String total_postage;
    num paid;
    num status;
    num refund_status;
    String pay_type;
    String coupon_price;
    String deduction_price;
    num pink_id;
    @JsonKey(name: 'delivery_type') dynamic delivery_type;
    num is_del;
    num shipping_type;
    List<CartInfo> cartInfo;
    @JsonKey(name: '_status') OrderStatus orderStatus;
    String status_pic;
    num offlinePayStatus;
    
    factory OrderData.fromJson(Map<String,dynamic> json) => _$OrderDataFromJson(json);
    Map<String, dynamic> toJson() => _$OrderDataToJson(this);
}
