SearchJobsRequest.fromJson constructor

SearchJobsRequest.fromJson(
  1. Map json_
)

Implementation

SearchJobsRequest.fromJson(core.Map json_)
    : this(
        customRankingInfo: json_.containsKey('customRankingInfo')
            ? CustomRankingInfo.fromJson(json_['customRankingInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        disableKeywordMatch: json_.containsKey('disableKeywordMatch')
            ? json_['disableKeywordMatch'] as core.bool
            : null,
        diversificationLevel: json_.containsKey('diversificationLevel')
            ? json_['diversificationLevel'] as core.String
            : null,
        enableBroadening: json_.containsKey('enableBroadening')
            ? json_['enableBroadening'] as core.bool
            : null,
        histogramQueries: json_.containsKey('histogramQueries')
            ? (json_['histogramQueries'] as core.List)
                .map((value) => HistogramQuery.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        jobQuery: json_.containsKey('jobQuery')
            ? JobQuery.fromJson(
                json_['jobQuery'] as core.Map<core.String, core.dynamic>)
            : null,
        jobView: json_.containsKey('jobView')
            ? json_['jobView'] as core.String
            : null,
        keywordMatchMode: json_.containsKey('keywordMatchMode')
            ? json_['keywordMatchMode'] as core.String
            : null,
        maxPageSize: json_.containsKey('maxPageSize')
            ? json_['maxPageSize'] as core.int
            : null,
        offset:
            json_.containsKey('offset') ? json_['offset'] as core.int : null,
        orderBy: json_.containsKey('orderBy')
            ? json_['orderBy'] as core.String
            : null,
        pageToken: json_.containsKey('pageToken')
            ? json_['pageToken'] as core.String
            : null,
        requestMetadata: json_.containsKey('requestMetadata')
            ? RequestMetadata.fromJson(json_['requestMetadata']
                as core.Map<core.String, core.dynamic>)
            : null,
        searchMode: json_.containsKey('searchMode')
            ? json_['searchMode'] as core.String
            : null,
      );