import 'package:json_annotation/json_annotation.dart';
import "userInfo.dart";
part 'user.g.dart';

@JsonSerializable()
class User {
    User();

    num uid;
    String real_name;
    num birthday;
    String card_id;
    num partner_id;
    num group_id;
    String nickname;
    String avatar;
    String phone;
    String now_money;
    String brokerage_price;
    String integral;
    num sign_num;
    num level;
    num spread_uid;
    num spread_time;
    String user_type;
    num is_promoter;
    num pay_count;
    num spread_count;
    String addres;
    bool adminid;
    String login_type;
    num vip_level;
    num vip_status;
    num vip_card_level;
    num vip_gift;
    String vip_time;
    String vip_card_id;
    num couponCount;
    num like;
    Map<String,dynamic> orderStatusNum;
    num notice;
    num recharge;
    num orderStatusSum;
    num extractTotalPrice;
    String extractPrice;
    num statu;
    String promoter_price;
    String broken_commission;
    String commissionCount;
    bool vip;
    num yesterDay;
    num recharge_switch;
    List<UserInfo> switchUserInfo;
    Map<String,dynamic> mails;
    
    factory User.fromJson(Map<String,dynamic> json) => _$UserFromJson(json);
    Map<String, dynamic> toJson() => _$UserToJson(this);
}
