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