MetricHeader.fromJson constructor

MetricHeader.fromJson(
  1. Map json_
)

Implementation

MetricHeader.fromJson(core.Map json_)
    : this(
        metricHeaderEntries: json_.containsKey('metricHeaderEntries')
            ? (json_['metricHeaderEntries'] as core.List)
                .map((value) => MetricHeaderEntry.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        pivotHeaders: json_.containsKey('pivotHeaders')
            ? (json_['pivotHeaders'] as core.List)
                .map((value) => PivotHeader.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );