check_seller_acc_model.dart 4.54 KB
import 'package:json_annotation/json_annotation.dart';

part 'check_seller_acc_model.g.dart';

@JsonSerializable()
class CheckSellerAccModel extends Object {
  @JsonKey(name: 'ret')
  int ret;

  @JsonKey(name: 'data')
  List<CheckSellerAccSunModel> data;

  @JsonKey(name: 'msg')
  String msg;

  CheckSellerAccModel(
    this.ret,
    this.data,
    this.msg,
  );

  factory CheckSellerAccModel.fromJson(Map<String, dynamic> srcJson) =>
      _$CheckSellerAccModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$CheckSellerAccModelToJson(this);
}

@JsonSerializable()
class CheckSellerAccSunModel extends Object {
  @JsonKey(name: 'id')
  String id;

  @JsonKey(name: 'uid')
  String uid;

  @JsonKey(name: 'seat_openid')
  String seatOpenid;

  @JsonKey(name: 'nick_name')
  String nickName;

  @JsonKey(name: 'auth_user_id')
  String authUserId;

  @JsonKey(name: 'seller_code')
  String sellerCode;

  @JsonKey(name: 'account')
  String account;

  @JsonKey(name: 'user_token')
  String userToken;

  @JsonKey(name: 'registrationId')
  String registrationId;

  @JsonKey(name: 'connection_id')
  String connectionId;

  @JsonKey(name: 'alias')
  String alias;

  @JsonKey(name: 'password')
  String password;

  @JsonKey(name: 'sellerid')
  String sellerid;

  @JsonKey(name: 'phone')
  String phone;

  @JsonKey(name: 'role_id')
  String roleId;

  @JsonKey(name: 'role_name')
  String roleName;

  @JsonKey(name: 'pid')
  String pid;

  @JsonKey(name: 'openid')
  String openid;

  @JsonKey(name: 'sellername')
  String sellername;

  @JsonKey(name: 'selleralias')
  String selleralias;

  @JsonKey(name: 'slogan')
  String slogan;

  @JsonKey(name: 'sellerdesc')
  String sellerdesc;

  @JsonKey(name: 'seller_logo')
  String sellerLogo;

  @JsonKey(name: 'seller_image')
  String sellerImage;

  @JsonKey(name: 'seller_tel')
  String sellerTel;

  @JsonKey(name: 'map_address')
  String mapAddress;

  @JsonKey(name: 'long')
  String long;

  @JsonKey(name: 'lat')
  String lat;

  @JsonKey(name: 'discount_type')
  String discountType;

  @JsonKey(name: 'last_num')
  String lastNum;

  @JsonKey(name: 'ispass')
  String ispass;

  @JsonKey(name: 'dis_ispass')
  String disIspass;

  @JsonKey(name: 'account_money')
  String accountMoney;

  @JsonKey(name: 'isopen_dc')
  String isopenDc;

  @JsonKey(name: 'isopen_md')
  String isopenMd;

  @JsonKey(name: 'dc_adduser_code')
  String dcAdduserCode;

  @JsonKey(name: 'average')
  String average;

  @JsonKey(name: 'is_online_reserve')
  String isOnlineReserve;

  @JsonKey(name: 'is_tele')
  String isTele;

  @JsonKey(name: 'daily')
  String daily;

  @JsonKey(name: 'daily_time')
  String dailyTime;

  @JsonKey(name: 'scale')
  String scale;

  @JsonKey(name: 'score')
  String score;

  @JsonKey(name: 'is_belt_wine')
  String isBeltWine;

  @JsonKey(name: 'is_auth')
  String isAuth;

  @JsonKey(name: 'is_call_tel')
  String isCallTel;

  @JsonKey(name: 'rec_stime')
  String recStime;

  @JsonKey(name: 'rec_etime')
  String recEtime;

  @JsonKey(name: 'status')
  String status;

  @JsonKey(name: 'is_recom')
  String isRecom;

  @JsonKey(name: 'cdate')
  String cdate;

  @JsonKey(name: 'applyment_sub_mchid')
  String applymentSubMchid;

  @JsonKey(name: 'pro_code')
  String proCode;

  @JsonKey(name: 'city_code')
  String cityCode;

  @JsonKey(name: 'dis_code')
  String disCode;

  CheckSellerAccSunModel(
    this.id,
    this.uid,
    this.seatOpenid,
    this.nickName,
    this.authUserId,
    this.sellerCode,
    this.account,
    this.userToken,
    this.registrationId,
    this.connectionId,
    this.alias,
    this.password,
    this.sellerid,
    this.phone,
    this.roleId,
    this.roleName,
    this.pid,
    this.openid,
    this.sellername,
    this.selleralias,
    this.slogan,
    this.sellerdesc,
    this.sellerLogo,
    this.sellerImage,
    this.sellerTel,
    this.mapAddress,
    this.long,
    this.lat,
    this.discountType,
    this.lastNum,
    this.ispass,
    this.disIspass,
    this.accountMoney,
    this.isopenDc,
    this.isopenMd,
    this.dcAdduserCode,
    this.average,
    this.isOnlineReserve,
    this.isTele,
    this.daily,
    this.dailyTime,
    this.scale,
    this.score,
    this.isBeltWine,
    this.isAuth,
    this.isCallTel,
    this.recStime,
    this.recEtime,
    this.status,
    this.isRecom,
    this.cdate,
    this.applymentSubMchid,
    this.proCode,
    this.cityCode,
    this.disCode,
  );

  factory CheckSellerAccSunModel.fromJson(Map<String, dynamic> srcJson) =>
      _$CheckSellerAccSunModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$CheckSellerAccSunModelToJson(this);
}