CreateAssociationBatchRequestEntry.fromJson constructor
CreateAssociationBatchRequestEntry.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CreateAssociationBatchRequestEntry.fromJson(
Map<String, dynamic> json) {
return CreateAssociationBatchRequestEntry(
name: json['Name'] as String,
applyOnlyAtCronInterval: json['ApplyOnlyAtCronInterval'] as bool?,
associationName: json['AssociationName'] as String?,
automationTargetParameterName:
json['AutomationTargetParameterName'] as String?,
complianceSeverity: (json['ComplianceSeverity'] as String?)
?.toAssociationComplianceSeverity(),
documentVersion: json['DocumentVersion'] as String?,
instanceId: json['InstanceId'] as String?,
maxConcurrency: json['MaxConcurrency'] as String?,
maxErrors: json['MaxErrors'] as String?,
outputLocation: json['OutputLocation'] != null
? InstanceAssociationOutputLocation.fromJson(
json['OutputLocation'] as Map<String, dynamic>)
: null,
parameters: (json['Parameters'] as Map<String, dynamic>?)?.map((k, e) =>
MapEntry(
k, (e as List).whereNotNull().map((e) => e as String).toList())),
scheduleExpression: json['ScheduleExpression'] as String?,
syncCompliance:
(json['SyncCompliance'] as String?)?.toAssociationSyncCompliance(),
targetLocations: (json['TargetLocations'] as List?)
?.whereNotNull()
.map((e) => TargetLocation.fromJson(e as Map<String, dynamic>))
.toList(),
targets: (json['Targets'] as List?)
?.whereNotNull()
.map((e) => Target.fromJson(e as Map<String, dynamic>))
.toList(),
);
}