override fun matches()

in graphql-dgs/src/main/kotlin/com/netflix/graphql/dgs/internal/DefaultInputObjectMapper.kt [62:75]


        override fun matches(
            sourceType: TypeDescriptor,
            targetType: TypeDescriptor,
        ): Boolean {
            if (targetType.type == Optional::class.java) {
                // Let Spring's ObjectToOptionalConverter handle it
                return false
            }
            if (sourceType.isMap) {
                val keyDescriptor = sourceType.mapKeyTypeDescriptor
                return keyDescriptor == null || keyDescriptor.type == String::class.java
            }
            return false
        }