Light.fromJson constructor
Implementation
Light.fromJson(Map<String,dynamic> json, Map<String,dynamic> rootJson):super.fromJson(json, rootJson){
type = "Light";
if (json["color"] != null) {
color = Color.fromHex32(json["color"]);
}
intensity = json["intensity"] ?? 1;
}