diff --git a/BO4E/BO/Marktlokation.cs b/BO4E/BO/Marktlokation.cs index 9c33a1a0..23416cca 100644 --- a/BO4E/BO/Marktlokation.cs +++ b/BO4E/BO/Marktlokation.cs @@ -8,6 +8,7 @@ using BO4E.EnergyIdentificationCodes; using BO4E.ENUM; using BO4E.meta; +using BO4E.meta.LenientConverters; using Newtonsoft.Json; using ProtoBuf; @@ -146,6 +147,10 @@ public class Marktlokation : BusinessObject [JsonPropertyOrder(22)] [JsonPropertyName("gasqualitaet")] [ProtoMember(16)] + [System.Text.Json.Serialization.JsonConverter( + typeof(SystemTextNullableGasqualitaetStringEnumConverter) + )] + [Newtonsoft.Json.JsonConverter(typeof(NewtonsoftGasqualitaetStringEnumConverter))] public Gasqualitaet? Gasqualitaet { get; set; } /// Link zum Geschäftspartner, dem diese Marktlokation gehört. diff --git a/BO4E/BO/Messlokation.cs b/BO4E/BO/Messlokation.cs index 9edf3fe0..223a1385 100644 --- a/BO4E/BO/Messlokation.cs +++ b/BO4E/BO/Messlokation.cs @@ -6,6 +6,7 @@ using BO4E.COM; using BO4E.ENUM; using BO4E.meta; +using BO4E.meta.LenientConverters; using Newtonsoft.Json; using ProtoBuf; @@ -208,6 +209,10 @@ public class Messlokation : BusinessObject [JsonPropertyOrder(26)] [ProtoMember(1020)] [NonOfficial(NonOfficialCategory.CUSTOMER_REQUIREMENTS)] + [System.Text.Json.Serialization.JsonConverter( + typeof(SystemTextNullableGasqualitaetStringEnumConverter) + )] + [Newtonsoft.Json.JsonConverter(typeof(NewtonsoftGasqualitaetStringEnumConverter))] public Gasqualitaet? Gasqualitaet { get; set; } ///