toJson method
Implementation
Map<String, dynamic> toJson() {
final name = this.name;
final applyOnlyAtCronInterval = this.applyOnlyAtCronInterval;
final associationName = this.associationName;
final automationTargetParameterName = this.automationTargetParameterName;
final complianceSeverity = this.complianceSeverity;
final documentVersion = this.documentVersion;
final instanceId = this.instanceId;
final maxConcurrency = this.maxConcurrency;
final maxErrors = this.maxErrors;
final outputLocation = this.outputLocation;
final parameters = this.parameters;
final scheduleExpression = this.scheduleExpression;
final syncCompliance = this.syncCompliance;
final targetLocations = this.targetLocations;
final targets = this.targets;
return {
'Name': name,
if (applyOnlyAtCronInterval != null)
'ApplyOnlyAtCronInterval': applyOnlyAtCronInterval,
if (associationName != null) 'AssociationName': associationName,
if (automationTargetParameterName != null)
'AutomationTargetParameterName': automationTargetParameterName,
if (complianceSeverity != null)
'ComplianceSeverity': complianceSeverity.toValue(),
if (documentVersion != null) 'DocumentVersion': documentVersion,
if (instanceId != null) 'InstanceId': instanceId,
if (maxConcurrency != null) 'MaxConcurrency': maxConcurrency,
if (maxErrors != null) 'MaxErrors': maxErrors,
if (outputLocation != null) 'OutputLocation': outputLocation,
if (parameters != null) 'Parameters': parameters,
if (scheduleExpression != null) 'ScheduleExpression': scheduleExpression,
if (syncCompliance != null) 'SyncCompliance': syncCompliance.toValue(),
if (targetLocations != null) 'TargetLocations': targetLocations,
if (targets != null) 'Targets': targets,
};
}