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