ObjectMapper-Plugin icon indicating copy to clipboard operation
ObjectMapper-Plugin copied to clipboard

plugin can't use, only add func there ,no auto mapable

Open klbest1 opened this issue 8 years ago • 1 comments

`import Cocoa import ObjectMapper class TestOb: NSObject , Mappable {

var testVar:String?
var testSS:Int?



required init?(map: Map) {

}

func mapping(map: Map) {
}

} ` I run the plugin, write down a custom class, nothing happen there , only two funcs added there. what's the matter?

klbest1 avatar Jan 11 '18 02:01 klbest1

var data: String = ""

This is the only way to make this plugin work.

Pay attention to the space between the : and value type

akring avatar Apr 17 '18 08:04 akring