public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ListThingPrincipalsResponse response = new ListThingPrincipalsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("principals", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.Principals = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}