Closed appfabtech closed 4 years ago
Any luck to solve your problem. I am facing same problem. How to map the array? coordinates = ( "76.2710833", "10.8505159" );
Any help?
The List
Any update on this? List of Ints is introduced but still not working with ObjectMapper
Solved this issue with: https://github.com/APUtils/ObjectMapperAdditions
It works for List < Int >
func mapping(map: Map) {
related_ids <- (map["related_ids"], RealmTypeCastTransform())
}
Hello and thanks for the support. I'm quite new to ObjectMapper (and swift too, migrating from objective c) I have an array of dictionaries I'm mapping using alamo and objectmapper to Realm. I mapped all the keys, creating also a couple of custom mappers for custom date format to string and string to bool, and everything is ok Now I have the last objects to map and I cannot find a clue (even aver googling some hours)
My json snippet is
I tried to create
but I didn't find any way to map the array to Realm list. Any suggestion? I tried some of the transformers you find in gist related to objectmodel but the understaing is far from my current skill :(
Thanks!