RemediationConfiguration.fromJson constructor
RemediationConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory RemediationConfiguration.fromJson(Map<String, dynamic> json) {
return RemediationConfiguration(
configRuleName: json['ConfigRuleName'] as String,
targetId: json['TargetId'] as String,
targetType: (json['TargetType'] as String).toRemediationTargetType(),
arn: json['Arn'] as String?,
automatic: json['Automatic'] as bool?,
createdByService: json['CreatedByService'] as String?,
executionControls: json['ExecutionControls'] != null
? ExecutionControls.fromJson(
json['ExecutionControls'] as Map<String, dynamic>)
: null,
maximumAutomaticAttempts: json['MaximumAutomaticAttempts'] as int?,
parameters: (json['Parameters'] as Map<String, dynamic>?)?.map((k, e) =>
MapEntry(k,
RemediationParameterValue.fromJson(e as Map<String, dynamic>))),
resourceType: json['ResourceType'] as String?,
retryAttemptSeconds: json['RetryAttemptSeconds'] as int?,
targetVersion: json['TargetVersion'] as String?,
);
}