We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4e66bf commit 3abc0dfCopy full SHA for 3abc0df
1 file changed
macOS/APIExample/Commons/Utils/Util.swift
@@ -0,0 +1,17 @@
1
+//
2
+// Util.swift
3
+// APIExample
4
5
+// Created by zhaoyongqiang on 2022/6/27.
6
+// Copyright © 2022 Agora Corp. All rights reserved.
7
8
+
9
+import Foundation
10
11
+enum Util {
12
+ static func dicValueString(_ dic: [String: Any]) ->String?{
13
+ let data = try? JSONSerialization.data(withJSONObject: dic, options: [])
14
+ let str = String(data: data!,encoding:String.Encoding.utf8)
15
+ return str
16
+ }
17
+}
0 commit comments