Metric.fromJson constructor

Metric.fromJson(
  1. Map json_
)

Implementation

Metric.fromJson(core.Map json_)
    : this(
        doubleValue: json_.containsKey('doubleValue')
            ? (json_['doubleValue'] as core.num).toDouble()
            : null,
        intValue: json_.containsKey('intValue')
            ? json_['intValue'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        stringValue: json_.containsKey('stringValue')
            ? json_['stringValue'] as core.String
            : null,
      );