PointLight.fromJSON constructor

PointLight.fromJSON(
  1. Map<String, dynamic> json,
  2. Map<String, dynamic> rootJSON
)

Implementation

PointLight.fromJSON(
  Map<String, dynamic> json,
  Map<String, dynamic> rootJSON,
) : super.fromJSON(json, rootJSON) {
  type = "PointLight";
  distance = json["distance"];
  decay = json["decay"] ?? 1;
  shadow = PointLightShadow.fromJSON(json["shadow"], rootJSON);
}