public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeIdentityPoolResponse response = new DescribeIdentityPoolResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AllowUnauthenticatedIdentities", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
response.AllowUnauthenticatedIdentities = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CognitoIdentityProviders", targetDepth))
{
var unmarshaller = new ListUnmarshaller<CognitoIdentityProviderInfo, CognitoIdentityProviderInfoUnmarshaller>(CognitoIdentityProviderInfoUnmarshaller.Instance);
response.CognitoIdentityProviders = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DeveloperProviderName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.DeveloperProviderName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("IdentityPoolId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.IdentityPoolId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("IdentityPoolName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.IdentityPoolName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("OpenIdConnectProviderARNs", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.OpenIdConnectProviderARNs = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SamlProviderARNs", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.SamlProviderARNs = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SupportedLoginProviders", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
response.SupportedLoginProviders = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}