PathReportCompatibleFields.fromJson constructor

PathReportCompatibleFields.fromJson(
  1. Map json_
)

Implementation

PathReportCompatibleFields.fromJson(core.Map json_)
    : this(
        channelGroupings: json_.containsKey('channelGroupings')
            ? (json_['channelGroupings'] as core.List)
                .map((value) => Dimension.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        dimensions: json_.containsKey('dimensions')
            ? (json_['dimensions'] as core.List)
                .map((value) => Dimension.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        metrics: json_.containsKey('metrics')
            ? (json_['metrics'] as core.List)
                .map((value) => Metric.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        pathFilters: json_.containsKey('pathFilters')
            ? (json_['pathFilters'] as core.List)
                .map((value) => Dimension.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );