#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable. using System.Text.Json.Serialization; namespace Blueberry.Redmine.Dto { public class TimeOnIssue { public class Activity { [JsonPropertyName("id")] public int Id { get; set; } [JsonPropertyName("name")] public string Name { get; set; } } public class CustomField { [JsonPropertyName("id")] public int Id { get; set; } [JsonPropertyName("name")] public string Name { get; set; } [JsonPropertyName("value")] public string Value { get; set; } } public class Issue { [JsonPropertyName("id")] public int Id { get; set; } } public class Project { [JsonPropertyName("id")] public int Id { get; set; } [JsonPropertyName("name")] public string Name { get; set; } } public class Root : IResponseList { [JsonPropertyName("time_entries")] public List TimeEntries { get; set; } [JsonPropertyName("total_count")] public int TotalCount { get; set; } [JsonPropertyName("offset")] public int Offset { get; set; } [JsonPropertyName("limit")] public int Limit { get; set; } } public class TimeEntry { [JsonPropertyName("id")] public int Id { get; set; } [JsonPropertyName("project")] public Project Project { get; set; } [JsonPropertyName("issue")] public Issue Issue { get; set; } [JsonPropertyName("user")] public User User { get; set; } [JsonPropertyName("activity")] public Activity Activity { get; set; } [JsonPropertyName("hours")] public double Hours { get; set; } [JsonPropertyName("comments")] public string Comments { get; set; } [JsonPropertyName("spent_on")] public string SpentOn { get; set; } [JsonPropertyName("created_on")] public DateTime CreatedOn { get; set; } [JsonPropertyName("updated_on")] public DateTime UpdatedOn { get; set; } [JsonPropertyName("custom_fields")] public List CustomFields { get; set; } } public class User { [JsonPropertyName("id")] public int Id { get; set; } [JsonPropertyName("name")] public string Name { get; set; } } } } #pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable.