Row.fromJson constructor

Row.fromJson(
  1. Map _json
)

Implementation

Row.fromJson(core.Map _json)
    : this(
        dimensionValues: _json.containsKey('dimensionValues')
            ? (_json['dimensionValues'] as core.List)
                .map<DimensionValue>((value) => DimensionValue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        metricValues: _json.containsKey('metricValues')
            ? (_json['metricValues'] as core.List)
                .map<MetricValue>((value) => MetricValue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );