MapTo is a kotlin tools, Convert a class to another class
- Use kotlin reflect
- Support annotation mark
- Support alias fields mapping
- Support different type mapping
class Source(val id:Int, val name:String)
class Target(val id:Int, val name:String)
fun main(){
val source = Source(0, "Mapper")
val target:Target = source.mapTo()
}