Metadata.fromJson constructor

Metadata.fromJson(
  1. Map _json
)

Implementation

Metadata.fromJson(core.Map _json)
    : this(
        dimensions: _json.containsKey('dimensions')
            ? (_json['dimensions'] as core.List)
                .map((value) => DimensionMetadata.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        metrics: _json.containsKey('metrics')
            ? (_json['metrics'] as core.List)
                .map((value) => MetricMetadata.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
      );