MetricShortId.fromJson constructor

MetricShortId.fromJson(
  1. Map _json
)

Implementation

MetricShortId.fromJson(core.Map _json)
    : this(
        metricIndex: _json.containsKey('metricIndex')
            ? _json['metricIndex'] as core.int
            : null,
        shortId: _json.containsKey('shortId')
            ? _json['shortId'] as core.String
            : null,
      );