Can you create me a mapping function in Kotlin between these two classes?
user
interface mappingfunction {
    fun mapfrom(source: any): any
    fun mapto(target: any): any
}

data class source(val value: string)
data class target(val value: string)

private class sourcetotargetmappingfunction : mappingfunction {
    override fun mapfrom(source: source): target {
        return target(source.value)
    }

    override fun mapto(target: target): source {
        return source(target.value)
    }
}
assistant
interface MappingFunction {
    fun mapFrom(source: Any): Any
    fun mapTo(target: Any): Any
}

data class Source(val value: String)
data class Target(val value: String)

private class SourceToTargetMappingFunction : MappingFunction {
    override fun mapFrom(source: Source): Target {
        return Target(source.value)
    }

    override fun mapTo(target: Target): Source {
        return Source(target.value)
    }
}
assistant