in short i have created two interfaces with implem...
# codereview
t
in short i have created two interfaces with implementations that can be overridden:
Copy code
@FunctionalInterface
interface JsonToObjectMapper {
    fun <T> map(json: String, targetClass: Class<T>): T
}

@FunctionalInterface
interface ObjectToJsonMapper {
    fun map(obj: Any): String
}