toJson method
Implementation
@override
Object toJson() => {
if (cron case final cron?) 'cron': cron,
if (createPipelineJobRequest case final createPipelineJobRequest?)
'createPipelineJobRequest': createPipelineJobRequest.toJson(),
if (createModelMonitoringJobRequest
case final createModelMonitoringJobRequest?)
'createModelMonitoringJobRequest': createModelMonitoringJobRequest
.toJson(),
if (createNotebookExecutionJobRequest
case final createNotebookExecutionJobRequest?)
'createNotebookExecutionJobRequest': createNotebookExecutionJobRequest
.toJson(),
if (name.isNotDefault) 'name': name,
'displayName': displayName,
if (startTime case final startTime?) 'startTime': startTime.toJson(),
if (endTime case final endTime?) 'endTime': endTime.toJson(),
if (maxRunCount.isNotDefault) 'maxRunCount': maxRunCount.toString(),
if (startedRunCount.isNotDefault)
'startedRunCount': startedRunCount.toString(),
if (state.isNotDefault) 'state': state.toJson(),
if (createTime case final createTime?) 'createTime': createTime.toJson(),
if (updateTime case final updateTime?) 'updateTime': updateTime.toJson(),
if (nextRunTime case final nextRunTime?)
'nextRunTime': nextRunTime.toJson(),
if (lastPauseTime case final lastPauseTime?)
'lastPauseTime': lastPauseTime.toJson(),
if (lastResumeTime case final lastResumeTime?)
'lastResumeTime': lastResumeTime.toJson(),
'maxConcurrentRunCount': maxConcurrentRunCount.toString(),
if (maxConcurrentActiveRunCount.isNotDefault)
'maxConcurrentActiveRunCount': maxConcurrentActiveRunCount.toString(),
if (allowQueueing.isNotDefault) 'allowQueueing': allowQueueing,
if (catchUp.isNotDefault) 'catchUp': catchUp,
if (lastScheduledRunResponse case final lastScheduledRunResponse?)
'lastScheduledRunResponse': lastScheduledRunResponse.toJson(),
};