NahidaImpact/NahidaImpact.Common/Data/Binout/Ability/AbilityData.cs
2024-01-04 16:48:39 +03:00

17 lines
521 B
C#

using System.Text.Json.Serialization;
namespace NahidaImpact.Common.Data.Binout.Ability;
public class AbilityData
{
[JsonPropertyName("abilityID")]
public required string AbilityId { get; set; }
[JsonPropertyName("abilityName")]
public required string AbilityName { get; set; }
[JsonPropertyName("abilityOverride")]
public required string AbilityOverride { get; set; }
public string GetAbilityOverride()
=> string.IsNullOrEmpty(AbilityOverride) ? "Default" : AbilityOverride;
}