diff --git a/Conductor/Api/EnvironmentResourceApi.cs b/Conductor/Api/EnvironmentResourceApi.cs index 60b029a..732a4ea 100644 --- a/Conductor/Api/EnvironmentResourceApi.cs +++ b/Conductor/Api/EnvironmentResourceApi.cs @@ -597,9 +597,13 @@ public ApiResponse> GetAllWithHttpInfo() if (exception != null) throw exception; } + var list = (List>)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List>)); + var dictionary = list + .Where(item => item.ContainsKey("name") && item.ContainsKey("value")) + .ToDictionary(item => item["name"], item => item["value"]); return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (Dictionary)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary))); + localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), + dictionary); } ///