
class SignListEntity {

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

	SignListEntity.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<SignListItem>.from(map["rows"].map((it) => SignListItem.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 SignListItem {

	String createDate;
	String id;
	String mtCompanyId;
	String userId;
	String coordinate;
	String remarks;
	String address;
	int status;
	int type;
	String username;
	String imgs;
	String requiredTime;
	String typeDesc;
	String statusDesc;
	String clockDate;
	String clockTime;

	SignListItem.fromJsonMap(Map<String, dynamic> map):
				createDate = map["createDate"],
				id = map["id"],
				mtCompanyId = map["mtCompanyId"],
				userId = map["userId"],
				coordinate = map["coordinate"],
				remarks = map["remarks"],
				address = map["address"],
				status = map["status"],
				type = map["type"],
				username = map["username"],
				imgs = map["imgs"],
				requiredTime = map["requiredTime"],
				typeDesc = map["typeDesc"],
				statusDesc = map["statusDesc"],
				clockDate = map["clockDate"],
				clockTime = map["clockTime"];

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['createDate'] = createDate;
		data['id'] = id;
		data['mtCompanyId'] = mtCompanyId;
		data['userId'] = userId;
		data['coordinate'] = coordinate;
		data['remarks'] = remarks;
		data['address'] = address;
		data['status'] = status;
		data['type'] = type;
		data['username'] = username;
		data['imgs'] = imgs;
		data['requiredTime'] = requiredTime;
		data['typeDesc'] = typeDesc;
		data['statusDesc'] = statusDesc;
		data['clockDate'] = clockDate;
		data['clockTime'] = clockTime;
		return data;
	}
}

