SearchApplication.fromJson constructor
SearchApplication.fromJson(
- Map json_
Implementation
SearchApplication.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,
defaultFacetOptions: json_.containsKey('defaultFacetOptions')
? (json_['defaultFacetOptions'] as core.List)
.map((value) => FacetOptions.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
defaultSortOptions: json_.containsKey('defaultSortOptions')
? SortOptions.fromJson(json_['defaultSortOptions']
as core.Map<core.String, core.dynamic>)
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
enableAuditLog: json_.containsKey('enableAuditLog')
? json_['enableAuditLog'] as core.bool
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
operationIds: json_.containsKey('operationIds')
? (json_['operationIds'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
queryInterpretationConfig:
json_.containsKey('queryInterpretationConfig')
? QueryInterpretationConfig.fromJson(
json_['queryInterpretationConfig']
as core.Map<core.String, core.dynamic>)
: null,
returnResultThumbnailUrls:
json_.containsKey('returnResultThumbnailUrls')
? json_['returnResultThumbnailUrls'] as core.bool
: null,
scoringConfig: json_.containsKey('scoringConfig')
? ScoringConfig.fromJson(
json_['scoringConfig'] as core.Map<core.String, core.dynamic>)
: null,
sourceConfig: json_.containsKey('sourceConfig')
? (json_['sourceConfig'] as core.List)
.map((value) => SourceConfig.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);