toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final ruleIdentifier = this.ruleIdentifier;
  final description = this.description;
  final inputParameters = this.inputParameters;
  final maximumExecutionFrequency = this.maximumExecutionFrequency;
  final resourceIdScope = this.resourceIdScope;
  final resourceTypesScope = this.resourceTypesScope;
  final tagKeyScope = this.tagKeyScope;
  final tagValueScope = this.tagValueScope;
  return {
    'RuleIdentifier': ruleIdentifier,
    if (description != null) 'Description': description,
    if (inputParameters != null) 'InputParameters': inputParameters,
    if (maximumExecutionFrequency != null)
      'MaximumExecutionFrequency': maximumExecutionFrequency.toValue(),
    if (resourceIdScope != null) 'ResourceIdScope': resourceIdScope,
    if (resourceTypesScope != null) 'ResourceTypesScope': resourceTypesScope,
    if (tagKeyScope != null) 'TagKeyScope': tagKeyScope,
    if (tagValueScope != null) 'TagValueScope': tagValueScope,
  };
}