import Cocoa
-class MasterFurnitureMapper: JSONMapper {
+final class MasterFurnitureMapper: JSONMapper {
+
let apiResponse: APIResponse
- let configuration = MappingConfiguration(entityName: "MasterFurniture",
- dataKey: "api_data.api_mst_furniture",
+ let configuration = MappingConfiguration(entity: MasterFurniture.self,
+ dataKeys: ["api_data", "api_mst_furniture"],
editorStore: ServerDataStore.oneTimeEditor(),
ignoreKeys: ["api_season"])
required init(_ apiResponse: APIResponse) {
+
self.apiResponse = apiResponse
}
}