ConfigFlow with cv.positive_time_period_dict

Hello,

in my integration I want to use cv.positive_time_period_dict in the options dialog, but it returns datetime.timedelta then which results in exception:

Failed to serialize to JSON: /home/local/MGM/pvranik/git/priv/hacs_rainbird/.storage/core.config_entries. Bad data at $.data.entries[0].data.trigger_time=0:02:00(<class 'datetime.timedelta'>, $.data.entries[0].data.scan_interval=0:01:00(<class 'datetime.timedelta'>
Error writing config for core.config_entries: Failed to serialize to JSON: /home/local/MGM/pvranik/git/priv/hacs_rainbird/.storage/core.config_entries. Bad data at $.data.entries[0].data.trigger_time=0:02:00(<class 'datetime.timedelta'>, $.data.entries[0].data.scan_interval=0:01:00(<class 'datetime.timedelta'>

I didn’t find any documentation which describe configflow with datetime. So what is the correct approach to show time input in the config flow dialog?