ReportRow.fromJson constructor

ReportRow.fromJson(
  1. Map json_
)

Implementation

ReportRow.fromJson(core.Map json_)
    : this(
        dimensionValues: json_.containsKey('dimensionValues')
            ? (json_['dimensionValues']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  ReportRowDimensionValue.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        metricValues: json_.containsKey('metricValues')
            ? (json_['metricValues'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  ReportRowMetricValue.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
      );