RoomModel.fromJson constructor

RoomModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

RoomModel.fromJson(Map<String, dynamic> json) {
  id = json["id"];
  userId = json["userId"];
  projectId = json["projectId"];
  suiteId = json["suiteId"];
  phaseCode = json["phaseCode"];
  measureMode = json["measureMode"];
  name = json["name"];
  taskStatus = json["taskStatus"];
  createTime = json["createTime"];
  modifiedTime = json["modifiedTime"];
  status = json["status"];
  mark = json["mark"];
  firstComputeTime = json["firstComputeTime"];
  lastComputeTime = json["lastComputeTime"];
  applicationId = json["applicationId"];
  houseTypeName = json["houseTypeName"];
  houseTypeImg = json["houseTypeImg"];
  stationDataList = json["stationDataList"] == null
      ? null
      : (json["stationDataList"] as List)
          .map((e) => StationData.fromJson(e))
          .toList();
  suite = json["suite"] == null ? null : Suite.fromJson(json["suite"]);
  project =
      json["project"] == null ? null : Project.fromJson(json["project"]);
  resultData = json["resultData"];
}