You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now I've been giving Realm a try, and I've been having numerous issues. Essentially, JSONs with pascal case are no longer automatically mapped to camel case variables. I've also tried adding the propertyMapping function but it's ignored.
The added pods are:
pod'EVReflection/Realm'pod'RealmSwift'
And an example model would be:
import Foundation
import EVReflection
import RealmSwift
publicclassTransaction:Object,EVReflectable{@objcpublicdynamicvaroperationCode:String?@objcpublicdynamicvarstreamId:String?publicfunc propertyMapping()->[(keyInObject:String?, keyInResource:String?)]{return[(keyInObject:"operationCode", keyInResource:"OperationCode")]}
A network call that maps this would for example be
I've been using EVReflection with Alamofire, Moya and RxSwift with absolutely no issues. An excerpt of the Podfile is as follows:
Now I've been giving Realm a try, and I've been having numerous issues. Essentially, JSONs with pascal case are no longer automatically mapped to camel case variables. I've also tried adding the propertyMapping function but it's ignored.
The added pods are:
And an example model would be:
A network call that maps this would for example be
The text was updated successfully, but these errors were encountered: