Intersection constructor

Intersection(
  1. Map<String, dynamic> json
)

Implementation

Intersection(Map<String, dynamic> json) {
  if (json["instanceId"] != null) {
    instanceId = json["instanceId"];
  }

  if (json["distance"] != null) {
    distance = json["distance"];
  }

  if (json["distanceToRay"] != null) {
    distanceToRay = json["distanceToRay"];
  }

  if (json["point"] != null) {
    point = json["point"];
  }

  if (json["index"] != null) {
    index = json["index"];
  }

  if (json["face"] != null) {
    face = json["face"];
  }

  if (json["faceIndex"] != null) {
    faceIndex = json["faceIndex"];
  }

  if (json["object"] != null) {
    object = json["object"];
  }

  if (json["uv"] != null) {
    uv = json["uv"];
  }

  if (json["uv2"] != null) {
    uv2 = json["uv2"];
  }
}