class YearlyListEntity {

  int pageNum;
  int pageCount;
  int total;
  int pageSize;
  bool hasNext;
  bool hasPrev;
  List<YearlyListItem> rows;

	YearlyListEntity.fromJsonMap(Map<String, dynamic> map): 
		pageNum = map["pageNum"],
		pageCount = map["pageCount"],
		total = map["total"],
		pageSize = map["pageSize"],
		hasNext = map["hasNext"],
		hasPrev = map["hasPrev"],
		rows = List<YearlyListItem>.from(map["rows"].map((it) => YearlyListItem.fromJsonMap(it)));

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['pageNum'] = pageNum;
		data['pageCount'] = pageCount;
		data['total'] = total;
		data['pageSize'] = pageSize;
		data['hasNext'] = hasNext;
		data['hasPrev'] = hasPrev;
		data['rows'] = rows != null ? 
			this.rows.map((v) => v.toJson()).toList()
			: null;
		return data;
	}
}


class YearlyListItem {

	String id;
	String liftId;
	String mtCompanyId;
	String planDate;
	int isCheckGoverner;
	int loadInspectionSetting;
	String finishTime;
	String certificateImgUrl;
	String inspector;
	String telephone;
	String operator;
	String creatorId;
	String createDate;
	int status;
	String nextInspectionTime;
	String selfcheckReportImg;
	String selfcheckDate;
	String checkResultImg;
	String checkDate;
	String annualInspectionImg;
	int stepStatus;
	int stepName;
	String areaName;
	String projectId;
	String projectName;
	String registrationCode;
	String liftCode;
	String devicePosition;
	String useCompanyCode;
	String workerName;
	String directorName;

	YearlyListItem();

	YearlyListItem.fromJsonMap(Map<String, dynamic> map):
				id = map["id"]??"",
				liftId = map["liftId"]??"",
				mtCompanyId = map["mtCompanyId"]??"",
				planDate = map["planDate"]??"",
				isCheckGoverner = map["isCheckGoverner"]??0,
				loadInspectionSetting = map["loadInspectionSetting"]??0,
				finishTime = map["finishTime"]??"",
				certificateImgUrl = map["certificateImgUrl"]??"",
				inspector = map["inspector"]??"",
				telephone = map["telephone"]??"",
				operator = map["operator"]??"",
				creatorId = map["creatorId"]??"",
				createDate = map["createDate"]??"",
				status = map["status"]??0,
				nextInspectionTime = map["nextInspectionTime"]??"",
				selfcheckReportImg = map["selfcheckReportImg"]??"",
				selfcheckDate = map["selfcheckDate"]??"",
				checkResultImg = map["checkResultImg"]??"",
				checkDate = map["checkDate"]??"",
				annualInspectionImg = map["annualInspectionImg"]??"",
				stepStatus = map["stepStatus"]??0,
				stepName = map["stepName"]??0,
				areaName = map["areaName"]??"",
				projectId = map["projectId"],
				projectName = map["projectName"],
				registrationCode = map["registrationCode"],
				liftCode = map["liftCode"],
				devicePosition = map["devicePosition"],
				useCompanyCode = map["useCompanyCode"],
				workerName = map["workerName"]??"",
				directorName = map["directorName"];

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['id'] = id;
		data['liftId'] = liftId;
		data['mtCompanyId'] = mtCompanyId;
		data['planDate'] = planDate;
		data['isCheckGoverner'] = isCheckGoverner;
		data['loadInspectionSetting'] = loadInspectionSetting;
		data['finishTime'] = finishTime;
		data['certificateImgUrl'] = certificateImgUrl;
		data['inspector'] = inspector;
		data['telephone'] = telephone;
		data['operator'] = operator;
		data['creatorId'] = creatorId;
		data['createDate'] = createDate;
		data['status'] = status;
		data['nextInspectionTime'] = nextInspectionTime;
		data['selfcheckReportImg'] = selfcheckReportImg;
		data['selfcheckDate'] = selfcheckDate;
		data['checkResultImg'] = checkResultImg;
		data['checkDate'] = checkDate;
		data['annualInspectionImg'] = annualInspectionImg;
		data['stepStatus'] = stepStatus;
		data['stepName'] = stepName;
		data['areaName'] = areaName;
		data['projectName'] = projectName;
		data['registrationCode'] = registrationCode;
		data['liftCode'] = liftCode;
		data['devicePosition'] = devicePosition;
		data['useCompanyCode'] = useCompanyCode;
		data['workerName'] = workerName;
		data['directorName'] = directorName;
		return data;
	}
}
