// // generated using ContentTool. DO NOT EDIT! // using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Collections.ObjectModel; using Newtonsoft.Json.Converters; using Newtonsoft.Json; namespace MetaAssets { #pragma warning disable public partial class BrandMetaDataMutable { [JsonProperty("ID")] public int ID { get; set; } [JsonProperty("BrandName")] public string BrandName { get; set; } [JsonProperty("LogoLeft")] public string LogoLeft { get; set; } [JsonProperty("LogoCenter")] public string LogoCenter { get; set; } [JsonProperty("LogoRight")] public string LogoRight { get; set; } [JsonProperty("LogoText")] public string LogoText { get; set; } } public partial class BrandMetaTableMutable { [JsonProperty("BrandMetaDataList")] public IList BrandMetaDataList { get; set; } } ////////////////////////////// // readonly class ////////////////////////////// public partial class BrandMetaData { public readonly int ID; public readonly string BrandName; public readonly string LogoLeft; public readonly string LogoCenter; public readonly string LogoRight; public readonly string LogoText; public BrandMetaData(BrandMetaDataMutable data) { ID = data.ID; BrandName = data.BrandName; LogoLeft = data.LogoLeft; LogoCenter = data.LogoCenter; LogoRight = data.LogoRight; LogoText = data.LogoText; } } public partial class BrandMetaTable { public readonly IReadOnlyList BrandMetaDataList; public BrandMetaTable(BrandMetaTableMutable data) { if(data.BrandMetaDataList != null) BrandMetaDataList = data.BrandMetaDataList.Select(x => new BrandMetaData(x)).ToList().AsReadOnly(); } } }