main.de.jensklingenberg.ktorfit.reqBuilderExtension.CustomRequestBuilderCodeGeneration.kt Maven / Gradle / Ivy
package de.jensklingenberg.ktorfit.reqBuilderExtension
import de.jensklingenberg.ktorfit.model.ParameterData
import de.jensklingenberg.ktorfit.model.annotations.ParameterAnnotation
fun getCustomRequestBuilderText(parameterDataList: List): String =
parameterDataList
.find { it.hasAnnotation() }
?.let {
it.name + "(this)"
}.orEmpty()