diff --git a/DragonFruit.OnionFruit.Web.Worker/CountryMap.cs b/DragonFruit.OnionFruit.Web.Worker/CountryMap.cs
index a16e332..54c73e7 100644
--- a/DragonFruit.OnionFruit.Web.Worker/CountryMap.cs
+++ b/DragonFruit.OnionFruit.Web.Worker/CountryMap.cs
@@ -28,20 +28,20 @@ static CountryMap()
///
/// The mapping of country codes to country names
///
- [JsonInclude, JsonPropertyName("countries")]
- private IReadOnlyDictionary CodeMap { get; set; }
+ [JsonPropertyName("countries")]
+ public IReadOnlyDictionary SourceMap { get; set; }
///
/// Gets the country name associated with the provided , or null if not found.
///
- public string GetCountryName(string code) => CodeMap.GetValueOrDefault(code.ToUpperInvariant());
+ public string GetCountryName(string code) => SourceMap.GetValueOrDefault(code.ToUpperInvariant());
void IJsonOnDeserialized.OnDeserialized()
{
// convert the dictionary to a frozen dictionary if it's not already
- if (CodeMap.GetType().GetGenericTypeDefinition() != typeof(FrozenDictionary<,>))
+ if (SourceMap.GetType().GetGenericTypeDefinition() != typeof(FrozenDictionary<,>))
{
- CodeMap = CodeMap.ToFrozenDictionary();
+ SourceMap = SourceMap.ToFrozenDictionary();
}
}
}