CubeView.fromJson constructor
CubeView.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CubeView.fromJson(Map<String, dynamic> json) {
return CubeView(
json['name'],
json['title'],
json['xAxis'] is String
? <String>[json['xAxis'] as String]
: List.from(json['xAxis']),
json.containsKey('series')
? json['series'] is String
? <String>[json['series'] as String]
: List.from(json['series'])
: [],
_parseViewType(json['type']),
mapChartType(json['chartType']),
List.from(json['indices'] ?? []));
}