BasicFilter.fromJson constructor
BasicFilter.fromJson(
- Map json_
Implementation
BasicFilter.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,
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,
);