/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { PurchaseProvisionedCapacityResponse response = new PurchaseProvisionedCapacityResponse(); if (context.ResponseData.IsHeaderPresent("x-amz-capacity-id")) response.CapacityId = context.ResponseData.GetHeaderValue("x-amz-capacity-id"); return response; }