JobQuery.fromJson constructor

JobQuery.fromJson(
  1. Map json_
)

Implementation

JobQuery.fromJson(core.Map json_)
    : this(
        commuteFilter: json_.containsKey('commuteFilter')
            ? CommuteFilter.fromJson(
                json_['commuteFilter'] as core.Map<core.String, core.dynamic>)
            : null,
        companyDisplayNames: json_.containsKey('companyDisplayNames')
            ? (json_['companyDisplayNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        companyNames: json_.containsKey('companyNames')
            ? (json_['companyNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        compensationFilter: json_.containsKey('compensationFilter')
            ? CompensationFilter.fromJson(json_['compensationFilter']
                as core.Map<core.String, core.dynamic>)
            : null,
        customAttributeFilter: json_.containsKey('customAttributeFilter')
            ? json_['customAttributeFilter'] as core.String
            : null,
        disableSpellCheck: json_.containsKey('disableSpellCheck')
            ? json_['disableSpellCheck'] as core.bool
            : null,
        employmentTypes: json_.containsKey('employmentTypes')
            ? (json_['employmentTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        jobCategories: json_.containsKey('jobCategories')
            ? (json_['jobCategories'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        languageCodes: json_.containsKey('languageCodes')
            ? (json_['languageCodes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        locationFilters: json_.containsKey('locationFilters')
            ? (json_['locationFilters'] as core.List)
                .map((value) => LocationFilter.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        publishTimeRange: json_.containsKey('publishTimeRange')
            ? TimestampRange.fromJson(json_['publishTimeRange']
                as core.Map<core.String, core.dynamic>)
            : null,
        query:
            json_.containsKey('query') ? json_['query'] as core.String : null,
        queryLanguageCode: json_.containsKey('queryLanguageCode')
            ? json_['queryLanguageCode'] as core.String
            : null,
      );