Fog.fromJson constructor

Fog.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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