/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateModelVersionResponse response = new UpdateModelVersionResponse(); 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) { UpdateModelVersionResponse response = new UpdateModelVersionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("modelId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ModelId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("modelType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ModelType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("modelVersionNumber", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ModelVersionNumber = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Status = unmarshaller.Unmarshall(context); continue; } } return(response); }