SearchRequest.fromJson constructor
SearchRequest.fromJson(
- Map json_
Implementation
SearchRequest.fromJson(core.Map json_)
: this(
contextAttributes: json_.containsKey('contextAttributes')
? (json_['contextAttributes'] as core.List)
.map((value) => ContextAttribute.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
dataSourceRestrictions: json_.containsKey('dataSourceRestrictions')
? (json_['dataSourceRestrictions'] as core.List)
.map((value) => DataSourceRestriction.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
facetOptions: json_.containsKey('facetOptions')
? (json_['facetOptions'] as core.List)
.map((value) => FacetOptions.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
pageSize: json_.containsKey('pageSize')
? json_['pageSize'] as core.int
: null,
query:
json_.containsKey('query') ? json_['query'] as core.String : null,
queryInterpretationOptions:
json_.containsKey('queryInterpretationOptions')
? QueryInterpretationOptions.fromJson(
json_['queryInterpretationOptions']
as core.Map<core.String, core.dynamic>)
: null,
requestOptions: json_.containsKey('requestOptions')
? RequestOptions.fromJson(json_['requestOptions']
as core.Map<core.String, core.dynamic>)
: null,
sortOptions: json_.containsKey('sortOptions')
? SortOptions.fromJson(
json_['sortOptions'] as core.Map<core.String, core.dynamic>)
: null,
start: json_.containsKey('start') ? json_['start'] as core.int : null,
);