ContainerResourceMetricSource.fromJson constructor

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

Creates a ContainerResourceMetricSource from JSON data.

Implementation

ContainerResourceMetricSource.fromJson(Map<String, dynamic> json)
    : this(
        container: json['container'],
        name: json['name'],
        target: MetricTarget.fromJson(json['target']),
      );