PivotTable.fromJson constructor
PivotTable.fromJson(
- Map json_
Implementation
PivotTable.fromJson(core.Map json_)
: this(
columns: json_.containsKey('columns')
? (json_['columns'] as core.List)
.map((value) => PivotGroup.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
criteria: json_.containsKey('criteria')
? (json_['criteria'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
PivotFilterCriteria.fromJson(
value as core.Map<core.String, core.dynamic>),
),
)
: null,
dataExecutionStatus: json_.containsKey('dataExecutionStatus')
? DataExecutionStatus.fromJson(json_['dataExecutionStatus']
as core.Map<core.String, core.dynamic>)
: null,
dataSourceId: json_.containsKey('dataSourceId')
? json_['dataSourceId'] as core.String
: null,
filterSpecs: json_.containsKey('filterSpecs')
? (json_['filterSpecs'] as core.List)
.map((value) => PivotFilterSpec.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
rows: json_.containsKey('rows')
? (json_['rows'] as core.List)
.map((value) => PivotGroup.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
source: json_.containsKey('source')
? GridRange.fromJson(
json_['source'] as core.Map<core.String, core.dynamic>)
: null,
valueLayout: json_.containsKey('valueLayout')
? json_['valueLayout'] as core.String
: null,
values: json_.containsKey('values')
? (json_['values'] as core.List)
.map((value) => PivotValue.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);