private static Response <RecognizeLinkedEntitiesResultCollection> CreateLinkedEntityResponse(Response response, IDictionary <string, int> idToIndexMap) => Response.FromValue(TextAnalyticsServiceSerializer.DeserializeLinkedEntityResponse(response.ContentStream, idToIndexMap), response);
private static Response <ExtractLinkedEntitiesResultCollection> CreateLinkedEntityResponse(Response response) => Response.FromValue(TextAnalyticsServiceSerializer.DeserializeLinkedEntityResponse(response.ContentStream), response);