FacetResult.fromJson constructor

FacetResult.fromJson(
  1. Map json_
)

Implementation

FacetResult.fromJson(core.Map json_)
    : this(
        buckets: json_.containsKey('buckets')
            ? (json_['buckets'] as core.List)
                .map((value) => FacetBucket.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : 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,
      );