/*
 * @Author: WuWei
 * @Date: 2020-06-17 09:07:46
 * @LastEditors: WuWei
 * @LastEditTime: 2020-06-17 14:27:53
 * @Description:
 */

class SearchCarDetailModel {
  String? id;
  String? type;
  String? cardNo;
  String? ownerName;
  String? ownerMobile;
  String? houseFullName;
  String? parkingLotName;
  bool? monthSubscribe;
  bool? newEnergy;
  String? remark;
  String? residentName;
  String? residentMobile;
  String? residentIdentit;
  String? parkingSpaceCode;
  String? parkingSpaceStatus;
  String? parkingSpacetType;

  SearchCarDetailModel({
    this.id,
    this.type,
    this.cardNo,
    this.ownerName,
    this.ownerMobile,
    this.houseFullName,
    this.parkingLotName,
    this.monthSubscribe,
    this.newEnergy,
    this.remark,
    this.residentName,
    this.residentMobile,
    this.residentIdentit,
    this.parkingSpaceCode,
    this.parkingSpaceStatus,
    this.parkingSpacetType,
  });

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

    id = map['id'];
    type = map['type'];
    cardNo = map['cardNo'];
    ownerName = map['ownerName'];
    ownerMobile = map['ownerMobile'];
    houseFullName = map['houseFullName'];
    parkingLotName = map['parkingLotName'];
    monthSubscribe = map['monthSubscribe'];
    newEnergy = map['newEnergy'];
    remark = map['remark'];
    residentName = map['residentName'];
    residentMobile = map['residentMobile'];
    residentIdentit = map['residentIdentit'];
    parkingSpaceCode = map['parkingSpaceCode'];
    parkingSpaceStatus = map['parkingSpaceStatus'];
    parkingSpacetType = map['parkingSpacetType'];
  }

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

    json['id'] = this.id;
    json['type'] = this.type;
    json['cardNo'] = this.cardNo;
    json['ownerName'] = this.ownerName;
    json['ownerMobile'] = this.ownerMobile;
    json['houseFullName'] = this.houseFullName;
    json['parkingLotName'] = this.parkingLotName;
    json['monthSubscribe'] = this.monthSubscribe;
    json['newEnergy'] = this.newEnergy;
    json['remark'] = this.remark;
    json['residentName'] = this.residentName;
    json['residentMobile'] = this.residentMobile;
    json['residentIdentit'] = this.residentIdentit;
    json['parkingSpaceCode'] = this.parkingSpaceCode;
    json['parkingSpaceStatus'] = this.parkingSpaceStatus;
    json['parkingSpacetType'] = this.parkingSpacetType;

    return json;
  }
}
