Map toMap()

in src/main/groovy/org/jetbrains/gradle/ext/ModuleTypesConfig.groovy [41:53]


    Map<String, ?> toMap() {

        Map<String, ?> result = [:]
        def rootType = propertiesExtension.get("rootModuleType")
        if (rootType != null && "" != rootType) {
            result << ["": rootType]
        }
        result << typesMap.collectEntries {
            [it.key.name, it.value]
        }

        return result
    }