JobMetrics.fromJson constructor

JobMetrics.fromJson(
  1. Map _json
)

Implementation

JobMetrics.fromJson(core.Map _json)
    : this(
        metricTime: _json.containsKey('metricTime')
            ? _json['metricTime'] as core.String
            : null,
        metrics: _json.containsKey('metrics')
            ? (_json['metrics'] as core.List)
                .map<MetricUpdate>((value) => MetricUpdate.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );