All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmMain.io.github.jan.supabase.postgrest.getColumnName.kt Maven / Gradle / Ivy

The newest version!
package io.github.jan.supabase.postgrest

import io.github.jan.supabase.annotations.SupabaseInternal
import kotlinx.serialization.SerialName
import kotlin.reflect.KProperty1
import kotlin.reflect.full.findAnnotation

@SupabaseInternal
actual fun  getSerialName(property: KProperty1): String {
    val serialName = property.findAnnotation()
    return serialName?.value ?: property.name
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy