ChartSpec.fromJson constructor
ChartSpec.fromJson(
- Map json_
Implementation
ChartSpec.fromJson(core.Map json_)
: this(
altText: json_.containsKey('altText')
? json_['altText'] as core.String
: null,
backgroundColor: json_.containsKey('backgroundColor')
? Color.fromJson(json_['backgroundColor']
as core.Map<core.String, core.dynamic>)
: null,
backgroundColorStyle: json_.containsKey('backgroundColorStyle')
? ColorStyle.fromJson(json_['backgroundColorStyle']
as core.Map<core.String, core.dynamic>)
: null,
basicChart: json_.containsKey('basicChart')
? BasicChartSpec.fromJson(
json_['basicChart'] as core.Map<core.String, core.dynamic>)
: null,
bubbleChart: json_.containsKey('bubbleChart')
? BubbleChartSpec.fromJson(
json_['bubbleChart'] as core.Map<core.String, core.dynamic>)
: null,
candlestickChart: json_.containsKey('candlestickChart')
? CandlestickChartSpec.fromJson(json_['candlestickChart']
as core.Map<core.String, core.dynamic>)
: null,
dataSourceChartProperties:
json_.containsKey('dataSourceChartProperties')
? DataSourceChartProperties.fromJson(
json_['dataSourceChartProperties']
as core.Map<core.String, core.dynamic>)
: null,
filterSpecs: json_.containsKey('filterSpecs')
? (json_['filterSpecs'] as core.List)
.map((value) => FilterSpec.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
fontName: json_.containsKey('fontName')
? json_['fontName'] as core.String
: null,
hiddenDimensionStrategy: json_.containsKey('hiddenDimensionStrategy')
? json_['hiddenDimensionStrategy'] as core.String
: null,
histogramChart: json_.containsKey('histogramChart')
? HistogramChartSpec.fromJson(json_['histogramChart']
as core.Map<core.String, core.dynamic>)
: null,
maximized: json_.containsKey('maximized')
? json_['maximized'] as core.bool
: null,
orgChart: json_.containsKey('orgChart')
? OrgChartSpec.fromJson(
json_['orgChart'] as core.Map<core.String, core.dynamic>)
: null,
pieChart: json_.containsKey('pieChart')
? PieChartSpec.fromJson(
json_['pieChart'] as core.Map<core.String, core.dynamic>)
: null,
scorecardChart: json_.containsKey('scorecardChart')
? ScorecardChartSpec.fromJson(json_['scorecardChart']
as core.Map<core.String, core.dynamic>)
: null,
sortSpecs: json_.containsKey('sortSpecs')
? (json_['sortSpecs'] as core.List)
.map((value) => SortSpec.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
subtitle: json_.containsKey('subtitle')
? json_['subtitle'] as core.String
: null,
subtitleTextFormat: json_.containsKey('subtitleTextFormat')
? TextFormat.fromJson(json_['subtitleTextFormat']
as core.Map<core.String, core.dynamic>)
: null,
subtitleTextPosition: json_.containsKey('subtitleTextPosition')
? TextPosition.fromJson(json_['subtitleTextPosition']
as core.Map<core.String, core.dynamic>)
: null,
title:
json_.containsKey('title') ? json_['title'] as core.String : null,
titleTextFormat: json_.containsKey('titleTextFormat')
? TextFormat.fromJson(json_['titleTextFormat']
as core.Map<core.String, core.dynamic>)
: null,
titleTextPosition: json_.containsKey('titleTextPosition')
? TextPosition.fromJson(json_['titleTextPosition']
as core.Map<core.String, core.dynamic>)
: null,
treemapChart: json_.containsKey('treemapChart')
? TreemapChartSpec.fromJson(
json_['treemapChart'] as core.Map<core.String, core.dynamic>)
: null,
waterfallChart: json_.containsKey('waterfallChart')
? WaterfallChartSpec.fromJson(json_['waterfallChart']
as core.Map<core.String, core.dynamic>)
: null,
);