when the value is null, don't serialize compound
fixed data_class for date and time fields