public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
BatchGetDeploymentGroupsResponse response = new BatchGetDeploymentGroupsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("deploymentGroupsInfo", targetDepth))
{
var unmarshaller = new ListUnmarshaller<DeploymentGroupInfo, DeploymentGroupInfoUnmarshaller>(DeploymentGroupInfoUnmarshaller.Instance);
response.DeploymentGroupsInfo = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("errorMessage", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ErrorMessage = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}