We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 411fe1b commit ae5df69Copy full SHA for ae5df69
Sources/Core/Helpers/APIHelper.swift
@@ -36,21 +36,6 @@ public enum APIHelper {
36
}
37
38
39
- public static func convertBoolToString(_ source: [String: Any]?) -> [String: Any]? {
40
- guard let source else {
41
- return nil
42
- }
43
-
44
- return source.reduce(into: [String: Any]()) { result, item in
45
- switch item.value {
46
- case let x as Bool:
47
- result[item.key] = x.description
48
- default:
49
- result[item.key] = item.value
50
51
52
53
54
public static func convertAnyToString(_ value: Any?) -> String? {
55
guard let value else { return nil }
56
if let value = value as? any RawRepresentable {
0 commit comments