using Newtonsoft.Json; namespace RSND.Core.Querying.Queries; public static class QueryHelper { public static QueryType? GetQueryType(string queryJson) { BaseQuery? query = JsonConvert.DeserializeObject(queryJson); if (query != null) { return query.Type switch { "GetValue" => QueryType.GetValue, _ => null }; } return null; } }