FacetOptions.fromJson constructor

FacetOptions.fromJson(
  1. Map json_
)

Implementation

FacetOptions.fromJson(core.Map json_)
    : this(
        integerFacetingOptions: json_.containsKey('integerFacetingOptions')
            ? IntegerFacetingOptions.fromJson(json_['integerFacetingOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        numFacetBuckets: json_.containsKey('numFacetBuckets')
            ? json_['numFacetBuckets'] as core.int
            : null,
        objectType: json_.containsKey('objectType')
            ? json_['objectType'] as core.String
            : null,
        operatorName: json_.containsKey('operatorName')
            ? json_['operatorName'] as core.String
            : null,
        sourceName: json_.containsKey('sourceName')
            ? json_['sourceName'] as core.String
            : null,
      );