/*
 * @Author: WuWei
 * @Date: 2020-07-21 15:17:39
 * @LastEditors: ChenYaJin
 * @LastEditTime: 2022-12-09 17:14:51
 * @Description:
 */

class ReportListModel {
  String? id;
  String? description;
  String? sortName;
  String? name;
  String? mobile;
  String? headPortrait;
  String? businessTypeName;
  String? businessType;
  dynamic photos;
  String? statusName;
  String? status;
  String? createAt;
  String? backTrackingAt;
  dynamic process;
  num? noReadNum;
  String? updateAt;
  dynamic dealPerson;
  dynamic dealPersonMobile;
  dynamic qrName;
  dynamic buildName;
  dynamic unitName;
  String? houseName;
  String? serviceFeeId;
  bool? paidService; // 是否有偿服务
  // 是否有偿服务
  String? tag;
  String? tagMsg;
  String? internalSortId;
  String? internalSortName;
  String? communityId;
  String? communityName;

  ReportListModel({
    this.id,
    this.description,
    this.sortName,
    this.name,
    this.mobile,
    this.headPortrait,
    this.businessTypeName,
    this.businessType,
    this.photos,
    this.statusName,
    this.status,
    this.createAt,
    this.backTrackingAt,
    this.process,
    this.noReadNum,
    this.updateAt,
    this.dealPerson,
    this.dealPersonMobile,
    this.qrName,
    this.buildName,
    this.unitName,
    this.houseName,
    this.serviceFeeId,
    this.paidService,
    this.tag,
    this.tagMsg,
    this.internalSortId,
    this.internalSortName,
    this.communityId,
    this.communityName,
  });

  ReportListModel.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});

    id = map['id'];
    description = map['description'];
    sortName = map['sortName'];
    name = map['name'];
    mobile = map['mobile'];
    headPortrait = map['headPortrait'];
    businessTypeName = map['businessTypeName'];
    businessType = map['businessType'];
    photos = map['photos'];
    statusName = map['statusName'];
    status = map['status'];
    createAt = map['createAt'];
    backTrackingAt = map['backTrackingAt'];
    process = map['process'];
    noReadNum = map['noReadNum'];
    updateAt = map['updateAt'];
    dealPerson = map['dealPerson'];
    dealPersonMobile = map['dealPersonMobile'];
    qrName = map['qrName'];
    buildName = map['buildName'];
    unitName = map['unitName'];
    houseName = map['houseName'];
    serviceFeeId = map['serviceFeeId'];
    paidService = map['paidService'] == null ? false : map['paidService'];
    tag = map['tag'];
    tagMsg = map['tagMsg'];
    internalSortId = map['internalSortId'];
    internalSortName = map['internalSortName'];
    communityId = map['communityId'];
    communityName = map['communityName'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = Map<String, dynamic>();

    json['id'] = this.id;
    json['description'] = this.description;
    json['sortName'] = this.sortName;
    json['name'] = this.name;
    json['mobile'] = this.mobile;
    json['headPortrait'] = this.headPortrait;
    json['businessTypeName'] = this.businessTypeName;
    json['businessType'] = this.businessType;
    json['photos'] = this.photos;
    json['statusName'] = this.statusName;
    json['status'] = this.status;
    json['createAt'] = this.createAt;
    json['backTrackingAt'] = this.backTrackingAt;
    json['process'] = this.process;
    json['noReadNum'] = this.noReadNum;
    json['updateAt'] = this.updateAt;
    json['dealPerson'] = this.dealPerson;
    json['dealPersonMobile'] = this.dealPersonMobile;
    json['qrName'] = this.qrName;
    json['buildName'] = this.buildName;
    json['unitName'] = this.unitName;
    json['houseName'] = this.houseName;
    json['serviceFeeId'] = this.serviceFeeId;
    json['paidService'] = this.paidService == null ? false : this.paidService;
    json['tag'] = this.tag;
    json['tagMsg'] = this.tagMsg;
    json['internalSortId'] = this.internalSortId;
    json['internalSortName'] = this.internalSortName;
    json['communityId'] = this.communityId;
    json['communityName'] = this.communityName;

    return json;
  }
}
