Fog.fromJson(Map<String,dynamic> json){ name = 'Fog'; this.color = Color.fromHex32(json['color'] ?? 0); this.near = json['near'] ?? 1; this.far = json['far'] ?? 1000; isFog = true; }