Metric.fromJson constructor

Metric.fromJson(
  1. Map json_
)

Implementation

Metric.fromJson(core.Map json_)
    : this(
        expression: json_.containsKey('expression')
            ? json_['expression'] as core.String
            : null,
        invisible: json_.containsKey('invisible')
            ? json_['invisible'] as core.bool
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );