ValueDescriptor.fromJson constructor

ValueDescriptor.fromJson(
  1. Map json_
)

Implementation

ValueDescriptor.fromJson(core.Map json_)
    : this(
        key: json_.containsKey('key') ? json_['key'] as core.String : null,
        metricKind: json_.containsKey('metricKind')
            ? json_['metricKind'] as core.String
            : null,
        unit: json_.containsKey('unit') ? json_['unit'] as core.String : null,
        valueType: json_.containsKey('valueType')
            ? json_['valueType'] as core.String
            : null,
      );