StatisticalGraph.fromJson constructor

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

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