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