toJson method
Implementation
Map<String, dynamic> toJson() {
final monitoringJobDefinition = this.monitoringJobDefinition;
final monitoringJobDefinitionName = this.monitoringJobDefinitionName;
final monitoringType = this.monitoringType;
final scheduleConfig = this.scheduleConfig;
return {
if (monitoringJobDefinition != null)
'MonitoringJobDefinition': monitoringJobDefinition,
if (monitoringJobDefinitionName != null)
'MonitoringJobDefinitionName': monitoringJobDefinitionName,
if (monitoringType != null) 'MonitoringType': monitoringType.toValue(),
if (scheduleConfig != null) 'ScheduleConfig': scheduleConfig,
};
}