using System.Text.Json.Serialization; using Newtonsoft.Json; namespace TOOHUCardAPI.DTO { public abstract class AbstractResponse { [JsonProperty("code")] public abstract string Code { get; } [JsonProperty("msg")] public abstract string Message { get; } } }