diff --git a/src/Meilisearch/Converters/TaskInfoTypeConverter.cs b/src/Meilisearch/Converters/TaskInfoTypeConverter.cs index 9ce8421c..750f03ff 100644 --- a/src/Meilisearch/Converters/TaskInfoTypeConverter.cs +++ b/src/Meilisearch/Converters/TaskInfoTypeConverter.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; using System.Text; -using System.Text.Json.Serialization; using System.Text.Json; +using System.Text.Json.Serialization; namespace Meilisearch.Converters { @@ -12,7 +12,7 @@ public override TaskInfoType Read(ref Utf8JsonReader reader, Type typeToConvert, { if (reader.TokenType == JsonTokenType.String) { - string enumValue = reader.GetString(); + var enumValue = reader.GetString(); if (Enum.TryParse(enumValue, true, out var taskInfoType)) { return taskInfoType; diff --git a/src/Meilisearch/TaskInfo.cs b/src/Meilisearch/TaskInfo.cs index 54a449c1..f1eda66e 100644 --- a/src/Meilisearch/TaskInfo.cs +++ b/src/Meilisearch/TaskInfo.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Text.Json.Serialization; + using Meilisearch.Converters; namespace Meilisearch