/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetStageResponse response = new GetStageResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("cacheClusterEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.CacheClusterEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("cacheClusterSize", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CacheClusterSize = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("cacheClusterStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CacheClusterStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("clientCertificateId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ClientCertificateId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreatedDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deploymentId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DeploymentId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastUpdatedDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("methodSettings", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, MethodSetting, StringUnmarshaller, MethodSettingUnmarshaller>(StringUnmarshaller.Instance, MethodSettingUnmarshaller.Instance); response.MethodSettings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stageName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.StageName = unmarshaller.Unmarshall(context); continue; } } return response; }