OrganizationCustomRuleMetadata.fromJson constructor
OrganizationCustomRuleMetadata.fromJson(
- Map<String, dynamic> json
)
Implementation
factory OrganizationCustomRuleMetadata.fromJson(Map<String, dynamic> json) {
return OrganizationCustomRuleMetadata(
lambdaFunctionArn: json['LambdaFunctionArn'] as String,
organizationConfigRuleTriggerTypes:
(json['OrganizationConfigRuleTriggerTypes'] as List)
.whereNotNull()
.map((e) => (e as String).toOrganizationConfigRuleTriggerType())
.toList(),
description: json['Description'] as String?,
inputParameters: json['InputParameters'] as String?,
maximumExecutionFrequency: (json['MaximumExecutionFrequency'] as String?)
?.toMaximumExecutionFrequency(),
resourceIdScope: json['ResourceIdScope'] as String?,
resourceTypesScope: (json['ResourceTypesScope'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
tagKeyScope: json['TagKeyScope'] as String?,
tagValueScope: json['TagValueScope'] as String?,
);
}