Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 412 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 412 Bytes

MapTo

MapTo is a kotlin tools, Convert a class to another class

Todo List

  • Use kotlin reflect
  • Support annotation mark
  • Support alias fields mapping
  • Support different type mapping

Examples

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()
}