public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
RegisterCertificateResponse response = new RegisterCertificateResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("certificateArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.CertificateArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("certificateId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.CertificateId = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}