toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final lambdaFunctionArn = this.lambdaFunctionArn;
  final organizationConfigRuleTriggerTypes =
      this.organizationConfigRuleTriggerTypes;
  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 {
    'LambdaFunctionArn': lambdaFunctionArn,
    'OrganizationConfigRuleTriggerTypes':
        organizationConfigRuleTriggerTypes.map((e) => e.toValue()).toList(),
    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,
  };
}