Skip to content

Commit 3abc0df

Browse files
author
zhaoyongqiang
committed
添加文件
1 parent d4e66bf commit 3abc0df

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)