toJson method
Implementation
Map<String, dynamic> toJson() {
final command = this.command;
final executionTimeoutSeconds = this.executionTimeoutSeconds;
final instanceId = this.instanceId;
final outputS3BucketName = this.outputS3BucketName;
final scriptType = this.scriptType;
final source = this.source;
return {
if (command != null) 'command': command,
if (executionTimeoutSeconds != null)
'executionTimeoutSeconds': executionTimeoutSeconds,
if (instanceId != null) 'instanceId': instanceId,
if (outputS3BucketName != null) 'outputS3BucketName': outputS3BucketName,
if (scriptType != null) 'scriptType': scriptType.toValue(),
if (source != null) 'source': source,
};
}