using NodaTime.Serialization;
using NodaTime.Serialization.SystemTextJson;
internal class ScheduleItem
public LocalTime From { get; set; }
public LocalTime To { get; set; }
public static void Main()
var options = new JsonSerializerOptions(JsonSerializerDefaults.Web).ConfigureForNodaTime(DateTimeZoneProviders.Tzdb);
var json = "{ \"from\": \"06:45\", \"to\": \"11:00\" }";
var scheduleItem = JsonSerializer.Deserialize<ScheduleItem>(json, options);
Console.WriteLine($"{scheduleItem.From}, {scheduleItem.To}");