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);
}