SearchJobsResponse.fromJson constructor
SearchJobsResponse.fromJson(
- Map json_
Implementation
SearchJobsResponse.fromJson(core.Map json_)
: this(
broadenedQueryJobsCount: json_.containsKey('broadenedQueryJobsCount')
? json_['broadenedQueryJobsCount'] as core.int
: null,
histogramQueryResults: json_.containsKey('histogramQueryResults')
? (json_['histogramQueryResults'] as core.List)
.map((value) => HistogramQueryResult.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
locationFilters: json_.containsKey('locationFilters')
? (json_['locationFilters'] as core.List)
.map((value) => Location.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
matchingJobs: json_.containsKey('matchingJobs')
? (json_['matchingJobs'] as core.List)
.map((value) => MatchingJob.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
metadata: json_.containsKey('metadata')
? ResponseMetadata.fromJson(
json_['metadata'] as core.Map<core.String, core.dynamic>)
: null,
nextPageToken: json_.containsKey('nextPageToken')
? json_['nextPageToken'] as core.String
: null,
spellCorrection: json_.containsKey('spellCorrection')
? SpellingCorrection.fromJson(json_['spellCorrection']
as core.Map<core.String, core.dynamic>)
: null,
totalSize: json_.containsKey('totalSize')
? json_['totalSize'] as core.int
: null,
);