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

@JsonSerializable()
class OrderDetails {
    OrderDetails();

    num id;
    String order_id;
    num uid;
    String real_name;
    String user_phone;
    String user_address;
    List cart_id;
    String freight_price;
    num total_num;
    String total_price;
    String total_postage;
    String pay_price;
    String pay_postage;
    String deduction_price;
    num coupon_id;
    String coupon_price;
    num paid;
    num pay_time;
    String pay_type;
    num add_time;
    num status;
    num refund_status;
    String refund_price;
    String gain_integral;
    String use_integral;
    num back_integral;
    String mark;
    num is_del;
    String unique;
    num mer_id;
    num is_mer_check;
    num combination_id;
    num pink_id;
    String cost;
    num seckill_id;
    num bargain_id;
    String verify_code;
    num store_id;
    num shipping_type;
    num clerk_id;
    num is_channel;
    num is_remind;
    num is_system_del;
    num is_rebate;
    String add_time_y;
    String add_time_h;
    String mapKey;
    List<CartInfo> cartInfo;
    @JsonKey(name: '_status') OrderStatus orderStatus;
    @JsonKey(name: '_pay_time') String payTime;
    @JsonKey(name: '_add_time') String addTime;
    String status_pic;
    num offlinePayStatus;
    
    factory OrderDetails.fromJson(Map<String,dynamic> json) => _$OrderDetailsFromJson(json);
    Map<String, dynamic> toJson() => _$OrderDetailsToJson(this);
}
