PivotHeaderEntry.fromJson constructor

PivotHeaderEntry.fromJson(
  1. Map json_
)

Implementation

PivotHeaderEntry.fromJson(core.Map json_)
    : this(
        dimensionNames: json_.containsKey('dimensionNames')
            ? (json_['dimensionNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        dimensionValues: json_.containsKey('dimensionValues')
            ? (json_['dimensionValues'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        metric: json_.containsKey('metric')
            ? MetricHeaderEntry.fromJson(
                json_['metric'] as core.Map<core.String, core.dynamic>)
            : null,
      );