import Cocoa
-class MasterSlotItemMapper: JSONMapper {
+final class MasterSlotItemMapper: JSONMapper {
+
let apiResponse: APIResponse
- let configuration = MappingConfiguration(entityType: MasterSlotItem.self,
- dataKey: "api_data.api_mst_slotitem",
- editorStore: ServerDataStore.oneTimeEditor())
+ let configuration = MappingConfiguration(entity: MasterSlotItem.self,
+ dataKeys: ["api_data", "api_mst_slotitem"],
+ editorStore: ServerDataStore.oneTimeEditor(),
+ ignoreKeys: ["api_version", "api_usebull"])
required init(_ apiResponse: APIResponse) {
+
self.apiResponse = apiResponse
}
}