toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final predefinedScalingMetricType = this.predefinedScalingMetricType;
  final resourceLabel = this.resourceLabel;
  return {
    'PredefinedScalingMetricType': predefinedScalingMetricType.toValue(),
    if (resourceLabel != null) 'ResourceLabel': resourceLabel,
  };
}