get_export_info_model.dart 3.47 KB

class GetExportInfoModel {
  int? ret;
  GetExportInfoSunModel? data;
  String? msg;

  GetExportInfoModel({this.ret, this.data, this.msg});

  GetExportInfoModel.fromJson(Map<String, dynamic> json) {
    ret = json['ret'];
    data = json['data'] != null
        ? new GetExportInfoSunModel.fromJson(json['data'])
        : null;
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['ret'] = this.ret;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    data['msg'] = this.msg;
    return data;
  }
}

class GetExportInfoSunModel {
  Info? info;
  List<ExcelData>? list;

  List<dynamic>? excelData;
  List<Count>? count;

  GetExportInfoSunModel({this.info, this.list, this.count});

  GetExportInfoSunModel.fromJson(Map<String, dynamic> json) {
    info = json['info'] != null ? new Info.fromJson(json['info']) : null;
    if (json['list'] != null) {
      list = <ExcelData>[];
      json['list'].forEach((v) {
        list!.add(new ExcelData.fromJson(v));
      });

      excelData = json['list'];
    }
    if (json['count'] != null) {
      count = <Count>[];
      json['count'].forEach((v) {
        count!.add(new Count.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.info != null) {
      data['info'] = this.info!.toJson();
    }
    if (this.list != null) {
      data['list'] = this.list!.map((v) => v.toJson()).toList();
    }
    if (this.count != null) {
      data['count'] = this.count!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class Info {
  String? sellername;

  Info({this.sellername});

  Info.fromJson(Map<String, dynamic> json) {
    sellername = json['sellername'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['sellername'] = this.sellername;
    return data;
  }
}

class ExcelData {
  String? cdate;
  String? ddate;
  String? status;
  String? ddateSolt;
  String? tableinfo;
  String? rname;
  String? phone;
  String? nickName;
  String? noteName;

  ExcelData(
      {this.cdate,
      this.ddate,
      this.status,
      this.ddateSolt,
      this.tableinfo,
      this.rname,
      this.phone,
      this.nickName,
      this.noteName});

  ExcelData.fromJson(Map<String, dynamic> json) {
    cdate = json['cdate'];
    ddate = json['ddate'];
    status = json['status'];
    ddateSolt = json['ddate_solt'];
    tableinfo = json['tableinfo'];
    rname = json['rname'];
    phone = json['phone'];
    nickName = json['nick_name'];
    noteName = json['note_name'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['cdate'] = this.cdate;
    data['ddate'] = this.ddate;
    data['status'] = this.status;
    data['ddate_solt'] = this.ddateSolt;
    data['tableinfo'] = this.tableinfo;
    data['rname'] = this.rname;
    data['phone'] = this.phone;
    data['nick_name'] = this.nickName;
    data['note_name'] = this.noteName;
    return data;
  }
}

class Count {
  String? total;
  String? nickName;

  Count({this.total, this.nickName});

  Count.fromJson(Map<String, dynamic> json) {
    total = json['total'];
    nickName = json['nick_name'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['total'] = this.total;
    data['nick_name'] = this.nickName;
    return data;
  }
}