         case let .array(_, values):
             return values.first?.structCode(indentation: indentation) ?? ""
         default:
-            break
-        }
-        return ""
-    }
-}
+            return ""
+        }
+    }
+}


extension String {

    fileprivate var propertyNameFromValue: String {
        return String(self.characters.dropLast()) // TODO: better propertyNameFromValue
    }

    fileprivate var type: String {
        return self.capitalized.components(separatedBy: "_").joined(separator: "")
    }

    fileprivate var propertyName: String {

        case .object:
            let jsonArray = "\(name.propertyName)JSONArray"
            lines.append("\(indent)let \(jsonArray) = json[\"\(name)\"] as? [[String: Any]]")
            lines.append("\(indent)let \(name.propertyName) = \(jsonArray).flatMap({ \(name.singularForm.type)(json: $0) }).flatMap({ $0 })")
        case .array:
            fatalError("Unsupported array in array!")
        case .url:
