ConfigRule.fromJson constructor
ConfigRule.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ConfigRule.fromJson(Map<String, dynamic> json) {
return ConfigRule(
source: Source.fromJson(json['Source'] as Map<String, dynamic>),
configRuleArn: json['ConfigRuleArn'] as String?,
configRuleId: json['ConfigRuleId'] as String?,
configRuleName: json['ConfigRuleName'] as String?,
configRuleState:
(json['ConfigRuleState'] as String?)?.toConfigRuleState(),
createdBy: json['CreatedBy'] as String?,
description: json['Description'] as String?,
inputParameters: json['InputParameters'] as String?,
maximumExecutionFrequency: (json['MaximumExecutionFrequency'] as String?)
?.toMaximumExecutionFrequency(),
scope: json['Scope'] != null
? Scope.fromJson(json['Scope'] as Map<String, dynamic>)
: null,
);
}