/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { RegisterJobDefinitionResponse response = new RegisterJobDefinitionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("jobDefinitionArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.JobDefinitionArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobDefinitionName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.JobDefinitionName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("revision", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.Revision = unmarshaller.Unmarshall(context); continue; } } return response; }