toJson method
Implementation
Map<String, dynamic> toJson() {
final desiredState = this.desiredState;
final maintenanceSchedules = this.maintenanceSchedules;
return {
if (desiredState != null) 'DesiredState': desiredState.toValue(),
if (maintenanceSchedules != null)
'MaintenanceSchedules': maintenanceSchedules,
};
}