StationResultDataSubModel.fromJson constructor

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

Implementation

StationResultDataSubModel.fromJson(Map<String, dynamic> json) {
  id = json["id"];
  name = json["name"];
  type = json["type"];
  index = json["index"] is int ? json["index"].toString() : json["index"];
  failed = json["failed"] is bool
      ? (json["failed"] == false ? 0 : 1)
      : json["failed"];
  height = json["height"];
  parent = json["parent"];
  floor_dist = json["floor_dist"];
  width_list = json["width_list"];
  height_list = json["height_list"];
  delta_height = json["delta_height"];
  img = json["img"];
  smooth_showed_count = json["smooth_showed_count"];
  vertical_showed_count = json["vertical_showed_count"];
  smcount = json["smcount"];
  smooth = json["smooth"];
  vecount = json["vecount"];
  vertical = json["vertical"];
  wall = json["wall"];
  count = json["count"];
  base = json["base"] is String ? json["base"] : json["base"].toString();
  measure = json["measure"] is String
      ? json["measure"]
      : json["measure"].toString();
  value = json["value"];
  fastMode = json["fast_mode"];
  objModel = json["obj_model"];
}