GoogleCloudRetailV2SearchRequestFacetSpecFacetKey.fromJson constructor

GoogleCloudRetailV2SearchRequestFacetSpecFacetKey.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRetailV2SearchRequestFacetSpecFacetKey.fromJson(core.Map json_)
    : this(
        caseInsensitive: json_.containsKey('caseInsensitive')
            ? json_['caseInsensitive'] as core.bool
            : null,
        contains: json_.containsKey('contains')
            ? (json_['contains'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        intervals: json_.containsKey('intervals')
            ? (json_['intervals'] as core.List)
                .map((value) => GoogleCloudRetailV2Interval.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        key: json_.containsKey('key') ? json_['key'] as core.String : null,
        orderBy: json_.containsKey('orderBy')
            ? json_['orderBy'] as core.String
            : null,
        prefixes: json_.containsKey('prefixes')
            ? (json_['prefixes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        query:
            json_.containsKey('query') ? json_['query'] as core.String : null,
        restrictedValues: json_.containsKey('restrictedValues')
            ? (json_['restrictedValues'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        returnMinMax: json_.containsKey('returnMinMax')
            ? json_['returnMinMax'] as core.bool
            : null,
      );