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