/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeAlgorithmResponse response = new DescribeAlgorithmResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("algorithm", targetDepth)) { var unmarshaller = AlgorithmUnmarshaller.Instance; response.Algorithm = unmarshaller.Unmarshall(context); continue; } } return(response); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeAlgorithmResponse response = new DescribeAlgorithmResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AlgorithmArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AlgorithmArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AlgorithmDescription", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AlgorithmDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AlgorithmName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AlgorithmName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AlgorithmStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AlgorithmStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AlgorithmStatusDetails", targetDepth)) { var unmarshaller = AlgorithmStatusDetailsUnmarshaller.Instance; response.AlgorithmStatusDetails = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CertifyForMarketplace", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.CertifyForMarketplace = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("InferenceSpecification", targetDepth)) { var unmarshaller = InferenceSpecificationUnmarshaller.Instance; response.InferenceSpecification = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProductId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ProductId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TrainingSpecification", targetDepth)) { var unmarshaller = TrainingSpecificationUnmarshaller.Instance; response.TrainingSpecification = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ValidationSpecification", targetDepth)) { var unmarshaller = AlgorithmValidationSpecificationUnmarshaller.Instance; response.ValidationSpecification = unmarshaller.Unmarshall(context); continue; } } return(response); }