CSSLayerData.fromJson constructor
Implementation
factory CSSLayerData.fromJson(Map<String, dynamic> json) {
return CSSLayerData(
name: json['name'] as String,
subLayers: json.containsKey('subLayers')
? (json['subLayers'] as List)
.map((e) => CSSLayerData.fromJson(e as Map<String, dynamic>))
.toList()
: null,
order: json['order'] as num,
);
}