/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetExportResponse response = new GetExportResponse(); var ms = new MemoryStream(); Amazon.Util.AWSSDKUtils.CopyStream(context.Stream, ms); ms.Seek(0, SeekOrigin.Begin); response.Body = ms; if (context.ResponseData.IsHeaderPresent("Content-Disposition")) response.ContentDisposition = context.ResponseData.GetHeaderValue("Content-Disposition"); if (context.ResponseData.IsHeaderPresent("Content-Type")) response.ContentType = context.ResponseData.GetHeaderValue("Content-Type"); return response; }