public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ListOutgoingCertificatesResponse response = new ListOutgoingCertificatesResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("nextMarker", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextMarker = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("outgoingCertificates", targetDepth))
{
var unmarshaller = new ListUnmarshaller<OutgoingCertificate, OutgoingCertificateUnmarshaller>(OutgoingCertificateUnmarshaller.Instance);
response.OutgoingCertificates = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}