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