/*
 * @Author: WuWei
 * @Date: 2020-06-03 10:13:30
 * @LastEditors  : WuWei
 * @LastEditTime : 2021-10-21 16:50:25
 * @Description:
 */

class SearchResidentDetailModel {
  String? id;
  String? buildName;
  String? unitName;
  String? roomNo;
  String? identity;
  String? name;
  String? mobile;
  String? sex;
  String? residenceStartAt;
  String? residenceEndAt;
  String? certificateType;
  String? idNumber;
  bool? status;
  String? otherMobile;
  String? address;
  String? remark;
  String? checkOutAt;
  bool? billOwner;

  SearchResidentDetailModel({
    this.id,
    this.buildName,
    this.unitName,
    this.roomNo,
    this.identity,
    this.name,
    this.mobile,
    this.sex,
    this.residenceStartAt,
    this.residenceEndAt,
    this.certificateType,
    this.idNumber,
    this.status,
    this.otherMobile,
    this.address,
    this.remark,
    this.checkOutAt,
    this.billOwner,
  });

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

    id = map['id'];
    buildName = map['buildName'];
    unitName = map['unitName'];
    roomNo = map['roomNo'];
    identity = map['identity'];
    name = map['name'];
    mobile = map['mobile'];
    sex = map['sex'];
    residenceStartAt = map['residenceStartAt'];
    residenceEndAt = map['residenceEndAt'];
    certificateType = map['certificateType'];
    idNumber = map['idNumber'];
    status = map['status'];
    otherMobile = map['otherMobile'];
    address = map['address'];
    remark = map['remark'];
    billOwner = map['billOwner'];
    checkOutAt = map['checkOutAt'];
  }

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

    json['id'] = this.id;
    json['buildName'] = this.buildName;
    json['unitName'] = this.unitName;
    json['roomNo'] = this.roomNo;
    json['identity'] = this.identity;
    json['name'] = this.name;
    json['mobile'] = this.mobile;
    json['sex'] = this.sex;
    json['residenceStartAt'] = this.residenceStartAt;
    json['residenceEndAt'] = this.residenceEndAt;
    json['certificateType'] = this.certificateType;
    json['idNumber'] = this.idNumber;
    json['status'] = this.status;
    json['otherMobile'] = this.otherMobile;
    json['address'] = this.address;
    json['remark'] = this.remark;
    json['billOwner'] = this.billOwner;
    json['checkOutAt'] = this.checkOutAt;

    return json;
  }
}
