.serialization_json.1.4.3.source-code.JacksonMapper.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of serialization_json Show documentation
Show all versions of serialization_json Show documentation
Hexagon CSV serialization format.
package com.hexagonkt.serialization
import kotlin.reflect.KClass
object JacksonMapper : Mapper {
override fun toFieldsMap(instance: Any): Map<*, *> =
JacksonHelper.mapper.convertValue(instance, Map::class.java)
override fun toObject(map: Map<*, *>, type: KClass): T =
JacksonHelper.mapper.convertValue(map, type.java)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy