Activities.fromJson constructor

Activities.fromJson(
  1. Map json_
)

Implementation

Activities.fromJson(core.Map json_)
    : this(
        filters: json_.containsKey('filters')
            ? (json_['filters'] as core.List)
                .map((value) => DimensionValue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        metricNames: json_.containsKey('metricNames')
            ? (json_['metricNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );