FilterView.fromJson constructor
FilterView.fromJson(
- Map json_
Implementation
FilterView.fromJson(core.Map json_)
: this(
criteria: json_.containsKey('criteria')
? (json_['criteria'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
FilterCriteria.fromJson(
value 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,
filterViewId: json_.containsKey('filterViewId')
? json_['filterViewId'] as core.int
: null,
namedRangeId: json_.containsKey('namedRangeId')
? json_['namedRangeId'] as core.String
: null,
range: json_.containsKey('range')
? GridRange.fromJson(
json_['range'] 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,
title:
json_.containsKey('title') ? json_['title'] as core.String : null,
);