SuggestRequest.fromJson constructor
SuggestRequest.fromJson(
- Map json_
Implementation
SuggestRequest.fromJson(core.Map json_)
: this(
dataSourceRestrictions: json_.containsKey('dataSourceRestrictions')
? (json_['dataSourceRestrictions'] as core.List)
.map((value) => DataSourceRestriction.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
query:
json_.containsKey('query') ? json_['query'] as core.String : null,
requestOptions: json_.containsKey('requestOptions')
? RequestOptions.fromJson(json_['requestOptions']
as core.Map<core.String, core.dynamic>)
: null,
);