using System; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; using Volo.Abp.Application.Dtos; namespace Sozsoft.Platform.Public; public class AboutDto : EntityDto { public Guid? TenantId { get; set; } [JsonIgnore] public string StatsJson { get; set; } public List StatsDto { get { if (!string.IsNullOrEmpty(StatsJson)) return JsonSerializer.Deserialize>(StatsJson); return new List(); } set { StatsJson = JsonSerializer.Serialize(value); } } [JsonIgnore] public string DescriptionsJson { get; set; } public List DescriptionsDto { get { if (!string.IsNullOrEmpty(DescriptionsJson)) return JsonSerializer.Deserialize>(DescriptionsJson); return []; } set { DescriptionsJson = JsonSerializer.Serialize(value); } } [JsonIgnore] public string SectionsJson { get; set; } public List SectionsDto { get { if (!string.IsNullOrEmpty(SectionsJson)) return JsonSerializer.Deserialize>(SectionsJson); return new List(); } set { SectionsJson = JsonSerializer.Serialize(value); } } }