toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final cloudMetricEnabled = this.cloudMetricEnabled;
  final metricRuleRoleArn = this.metricRuleRoleArn;
  return {
    if (cloudMetricEnabled != null) 'cloudMetricEnabled': cloudMetricEnabled,
    if (metricRuleRoleArn != null) 'metricRuleRoleArn': metricRuleRoleArn,
  };
}