ReportRow.fromJson constructor

ReportRow.fromJson(
  1. Map json_
)

Implementation

ReportRow.fromJson(core.Map json_)
    : this(
        dimensions: json_.containsKey('dimensions')
            ? (json_['dimensions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        metrics: json_.containsKey('metrics')
            ? (json_['metrics'] as core.List)
                .map((value) => DateRangeValues.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );