toJson method
Implementation
@override
Object toJson() => {
if (name.isNotDefault) 'name': name,
if (displayName.isNotDefault) 'displayName': displayName,
if (modelMonitoringSpec case final modelMonitoringSpec?)
'modelMonitoringSpec': modelMonitoringSpec.toJson(),
if (createTime case final createTime?) 'createTime': createTime.toJson(),
if (updateTime case final updateTime?) 'updateTime': updateTime.toJson(),
if (state.isNotDefault) 'state': state.toJson(),
if (schedule.isNotDefault) 'schedule': schedule,
if (jobExecutionDetail case final jobExecutionDetail?)
'jobExecutionDetail': jobExecutionDetail.toJson(),
if (scheduleTime case final scheduleTime?)
'scheduleTime': scheduleTime.toJson(),
};