/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListApplicationsResponse response = new ListApplicationsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ApplicationSummaries", targetDepth)) { var unmarshaller = new ListUnmarshaller<ApplicationSummary, ApplicationSummaryUnmarshaller>(ApplicationSummaryUnmarshaller.Instance); response.ApplicationSummaries = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HasMoreApplications", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.HasMoreApplications = unmarshaller.Unmarshall(context); continue; } } return response; }