public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
CreateActivationResponse response = new CreateActivationResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ActivationCode", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ActivationCode = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ActivationId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ActivationId = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}