HistogramFacets.fromJson constructor

HistogramFacets.fromJson(
  1. Map json_
)

Implementation

HistogramFacets.fromJson(core.Map json_)
    : this(
        compensationHistogramFacets:
            json_.containsKey('compensationHistogramFacets')
                ? (json_['compensationHistogramFacets'] as core.List)
                    .map((value) => CompensationHistogramRequest.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        customAttributeHistogramFacets:
            json_.containsKey('customAttributeHistogramFacets')
                ? (json_['customAttributeHistogramFacets'] as core.List)
                    .map((value) => CustomAttributeHistogramRequest.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        simpleHistogramFacets: json_.containsKey('simpleHistogramFacets')
            ? (json_['simpleHistogramFacets'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );