SearchJobsResponse.fromJson constructor

SearchJobsResponse.fromJson(
  1. Map json_
)

Implementation

SearchJobsResponse.fromJson(core.Map json_)
    : this(
        broadenedQueryJobsCount: json_.containsKey('broadenedQueryJobsCount')
            ? json_['broadenedQueryJobsCount'] as core.int
            : null,
        estimatedTotalSize: json_.containsKey('estimatedTotalSize')
            ? json_['estimatedTotalSize'] as core.int
            : null,
        histogramResults: json_.containsKey('histogramResults')
            ? HistogramResults.fromJson(json_['histogramResults']
                as core.Map<core.String, core.dynamic>)
            : 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,
      );