class DetailModel {
  String? id;
  String? description;
  String? sortName;
  String? name;
  String? mobile;
  String? businessType;
  String? status;
  String? statusName;
  List<String>? photos;
  String? buildName;
  String? unitName;
  String? houseName;

  DetailModel({
    this.id,
    this.description,
    this.sortName,
    this.name,
    this.mobile,
    this.businessType,
    this.status,
    this.statusName,
    this.photos,
    this.buildName,
    this.unitName,
    this.houseName,
  });

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

    id = map['id'];
    description = map['description'];
    sortName = map['sortName'];
    name = map['name'];
    mobile = map['mobile'];
    businessType = map['businessType'];
    status = map['status'];
    statusName = map['statusName'];
    photos = map['photos'].cast<String>();
    buildName = map['buildName'];
    unitName = map['unitName'];
    houseName = map['houseName'];
  }

  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['businessType'] = this.businessType;
    json['status'] = this.status;
    json['statusName'] = this.statusName;
    json['photos'] = this.photos;
    json['buildName'] = this.buildName;
    json['unitName'] = this.unitName;
    json['houseName'] = this.houseName;

    return json;
  }
}
