I have two modules, module A and module B, each module have its own data classes FOO and Pl
data class Foo ( var title : String, list : List<Pl>)
data class Pl ( var title : String, list : List<String>)
I want to cast/convert an object, from module A, to be used in another module B.
I already converted that by mapping each attribute but I am just looking for a better solution(if exist with kotlin), because the first one makes boilerplate code.