OSDN Git Service

staticプロパティをインスタンスプロパティに変更
[kcd/KCD.git] / KCD / MasterMapAreaMapper.swift
index faef531..ddf9beb 100644 (file)
@@ -8,15 +8,15 @@
 
 import Cocoa
 
-class MasterMapAreaMapper: JSONMapper {
-    typealias ObjectType = MasterMapArea
-    
+final class MasterMapAreaMapper: JSONMapper {
+        
     let apiResponse: APIResponse
-    let configuration = MappingConfiguration(entity: MasterMapArea.entity,
+    let configuration = MappingConfiguration(entity: MasterMapArea.self,
                                              dataKeys: ["api_data", "api_mst_maparea"],
                                              editorStore: ServerDataStore.oneTimeEditor())
     
     required init(_ apiResponse: APIResponse) {
+        
         self.apiResponse = apiResponse
     }
 }