                         unboxedFields[field] = getValueFromDict(dict: intDict, locale: locale)
                     case .bool:
                         let boolDict = try fields.decode(BoolDict.self, forKey: key)
-                       unboxedFields[field] = getValueFromDict(dict: boolDict, locale: locale)
+                        unboxedFields[field] = getValueFromDict(dict: boolDict, locale: locale)
                     case .decimal:
                         let doubleDict = try fields.decode(DoubleDict.self, forKey: key)
                         unboxedFields[field] = getValueFromDict(dict: doubleDict, locale: locale)

        object = creator(fields)
    }
    
  
    static func unboxableFields(fromDecoder decoder: Decoder, withUnboxing unboxing: (() -> FieldMapping)) throws -> UnboxedFields {
       
        func getValueFromDict<T>(dict: [String:T], locale: Locale?) -> T? {
            if let locale = locale {
                return dict[locale.favouredLocale.rawValue] ?? dict[locale.fallbackLocale.rawValue]

                            let idDict = sysDict["sys"],
                            let id = idDict["id"] else { throw DecodingError.invalidData }
                        unboxedFields[field] = id
                        
                    }
                    
                    print ("field: \(field) required: \(required), value: \(unboxedFields[field] ?? "not set")" )
