add questTypeEnum to converter

This commit is contained in:
CWX
2025-01-22 10:17:03 +00:00
parent 65650ad978
commit dbc1c11e7e
2 changed files with 3 additions and 1 deletions
@@ -48,7 +48,8 @@ public record Quest
public string? Image { get; set; }
[JsonPropertyName("type")] // can be string or QuestTypeEnum
public string? Type { get; set; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public QuestTypeEnum? Type { get; set; }
[JsonPropertyName("isKey")]
public bool? IsKey { get; set; }