public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
GetLexiconResponse response = new GetLexiconResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Lexicon", targetDepth))
{
var unmarshaller = LexiconUnmarshaller.Instance;
response.Lexicon = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LexiconAttributes", targetDepth))
{
var unmarshaller = LexiconAttributesUnmarshaller.Instance;
response.LexiconAttributes = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}