public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
GetDomainsResponse response = new GetDomainsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("domains", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Domain, DomainUnmarshaller>(DomainUnmarshaller.Instance);
response.Domains = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("nextPageToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextPageToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}