StatisticalGraph.fromJson constructor
a StatisticalGraph return type can be :
Implementation
factory StatisticalGraph.fromJson(Map<String, dynamic> json) {
switch(json["@type"]) {
case StatisticalGraphData.CONSTRUCTOR:
return StatisticalGraphData.fromJson(json);
case StatisticalGraphAsync.CONSTRUCTOR:
return StatisticalGraphAsync.fromJson(json);
case StatisticalGraphError.CONSTRUCTOR:
return StatisticalGraphError.fromJson(json);
default:
return const StatisticalGraph();
}
}