public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
UpdateDomainNameResponse response = new UpdateDomainNameResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("certificateName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.CertificateName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("certificateUploadDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.CertificateUploadDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("distributionDomainName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.DistributionDomainName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("domainName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Name = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}