toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final containerLevelMetrics = this.containerLevelMetrics;
  final metricPolicyRules = this.metricPolicyRules;
  return {
    'ContainerLevelMetrics': containerLevelMetrics.toValue(),
    if (metricPolicyRules != null) 'MetricPolicyRules': metricPolicyRules,
  };
}