public HttpApiV2AuthorizerMap deserialize()

in aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/model/HttpApiV2AuthorizerMap.java [80:101]


        public HttpApiV2AuthorizerMap deserialize(JsonParser jsonParser, DeserializationContext deserializationContext)
                throws IOException, JsonProcessingException {
            HttpApiV2AuthorizerMap map = new HttpApiV2AuthorizerMap();
            JsonNode node = jsonParser.getCodec().readTree(jsonParser);
            if (node.has(JWT_KEY)) {
                HttpApiV2JwtAuthorizer authorizer = LambdaContainerHandler.getObjectMapper()
                        .treeToValue(node.get(JWT_KEY), HttpApiV2JwtAuthorizer.class);
                map.putJwtAuthorizer(authorizer);
            }
            if (node.has(LAMBDA_KEY)) {
                Map<String, Object> context = LambdaContainerHandler.getObjectMapper().treeToValue(node.get(LAMBDA_KEY),
                        TypeFactory.defaultInstance().constructMapType(HashMap.class, String.class, Object.class));
                map.put(LAMBDA_KEY, context);
            }
            if (node.has(IAM_KEY)) {
                HttpApiV2IamAuthorizer iam_authorizer = LambdaContainerHandler.getObjectMapper()
                        .treeToValue(node.get(IAM_KEY), HttpApiV2IamAuthorizer.class);
                map.putIamAuthorizer(iam_authorizer);
            }
            // we ignore other, unknown values
            return map;
        }