This code helps using ObjectMapper with RealmSwift.
RealmSwift uses List<T> collection for "to many" relashionships and RealmOptional<T> for optional primitive types, but ObjectMapper can't map directly to List<T> and RealmOptional<T>.
With this operators you can properly define RealmSwift's relashionships and optional properties and use <- operator to map them.
import Foundation