/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetModelVersionResponse response = new GetModelVersionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } 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); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetModelVersionResponse response = new GetModelVersionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("externalEventsDetail", targetDepth)) { var unmarshaller = ExternalEventsDetailUnmarshaller.Instance; response.ExternalEventsDetail = unmarshaller.Unmarshall(context); continue; } 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; } if (context.TestExpression("trainingDataSchema", targetDepth)) { var unmarshaller = TrainingDataSchemaUnmarshaller.Instance; response.TrainingDataSchema = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("trainingDataSource", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.TrainingDataSource = unmarshaller.Unmarshall(context); continue; } } return(response); }