PodsMetricSource.fromJson constructor

PodsMetricSource.fromJson(
  1. Map<String, dynamic> json
)

Creates a PodsMetricSource from JSON data.

Implementation

PodsMetricSource.fromJson(Map<String, dynamic> json)
    : this(
        metric: MetricIdentifier.fromJson(json['metric']),
        target: MetricTarget.fromJson(json['target']),
      );