HistogramResults.fromJson constructor

HistogramResults.fromJson(
  1. Map json_
)

Implementation

HistogramResults.fromJson(core.Map json_)
    : this(
        compensationHistogramResults:
            json_.containsKey('compensationHistogramResults')
                ? (json_['compensationHistogramResults'] as core.List)
                    .map((value) => CompensationHistogramResult.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        customAttributeHistogramResults:
            json_.containsKey('customAttributeHistogramResults')
                ? (json_['customAttributeHistogramResults'] as core.List)
                    .map((value) => CustomAttributeHistogramResult.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        simpleHistogramResults: json_.containsKey('simpleHistogramResults')
            ? (json_['simpleHistogramResults'] as core.List)
                .map((value) => HistogramResult.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );