add questTypeEnum to converter
This commit is contained in:
@@ -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; }
|
||||
|
||||
@@ -31,6 +31,7 @@ public class JsonUtil
|
||||
new EftEnumConverter<SideType>(),
|
||||
new EftEnumConverter<BonusSkillType>(),
|
||||
new EftEnumConverter<NotificationEventType>(),
|
||||
new EftEnumConverter<QuestTypeEnum>(),
|
||||
new BaseInteractionRequestDataConverter()
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user