namespace VersOne.Epub.Test.Integration.JsonUtils.Configuration { internal class JsonSerializerConfiguration { private readonly Dictionary customTypes; public JsonSerializerConfiguration(IEnumerable customTypes) { this.customTypes = customTypes.ToDictionary(customType => customType.Type); } public CustomType? GetCustomType(Type type) { customTypes.TryGetValue(type, out CustomType? result); return result; } } }