OrgChartSpec.fromJson constructor
OrgChartSpec.fromJson(
- Map json_
Implementation
OrgChartSpec.fromJson(core.Map json_)
: this(
labels: json_.containsKey('labels')
? ChartData.fromJson(
json_['labels'] as core.Map<core.String, core.dynamic>)
: null,
nodeColor: json_.containsKey('nodeColor')
? Color.fromJson(
json_['nodeColor'] as core.Map<core.String, core.dynamic>)
: null,
nodeColorStyle: json_.containsKey('nodeColorStyle')
? ColorStyle.fromJson(json_['nodeColorStyle']
as core.Map<core.String, core.dynamic>)
: null,
nodeSize: json_.containsKey('nodeSize')
? json_['nodeSize'] as core.String
: null,
parentLabels: json_.containsKey('parentLabels')
? ChartData.fromJson(
json_['parentLabels'] as core.Map<core.String, core.dynamic>)
: null,
selectedNodeColor: json_.containsKey('selectedNodeColor')
? Color.fromJson(json_['selectedNodeColor']
as core.Map<core.String, core.dynamic>)
: null,
selectedNodeColorStyle: json_.containsKey('selectedNodeColorStyle')
? ColorStyle.fromJson(json_['selectedNodeColorStyle']
as core.Map<core.String, core.dynamic>)
: null,
tooltips: json_.containsKey('tooltips')
? ChartData.fromJson(
json_['tooltips'] as core.Map<core.String, core.dynamic>)
: null,
);