public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
GetKeyPairResponse response = new GetKeyPairResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("keyPair", targetDepth))
{
var unmarshaller = KeyPairUnmarshaller.Instance;
response.KeyPair = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}