toJson method
Implementation
Map<String, dynamic> toJson() {
final documentName = this.documentName;
final documentVersion = this.documentVersion;
final maxConcurrency = this.maxConcurrency;
final maxErrors = this.maxErrors;
final parameters = this.parameters;
final targetLocations = this.targetLocations;
final targetParameterName = this.targetParameterName;
final targets = this.targets;
return {
'DocumentName': documentName,
if (documentVersion != null) 'DocumentVersion': documentVersion,
if (maxConcurrency != null) 'MaxConcurrency': maxConcurrency,
if (maxErrors != null) 'MaxErrors': maxErrors,
if (parameters != null) 'Parameters': parameters,
if (targetLocations != null) 'TargetLocations': targetLocations,
if (targetParameterName != null)
'TargetParameterName': targetParameterName,
if (targets != null) 'Targets': targets,
};
}