HandyJSON数组转String, 编译器一直报错

carvr3hs  于 2022-11-06  发布在  其他
关注(0)|答案(1)|浏览(308)

public class Program: HandyJSON {
public var id: String!
public var name: String!
public var xml: String!
public var programPath: String!

public required init() {}

public init(id: String, name: String, xml: String, programPath: String) {
    self.id = id
    self.name = name
    self.xml = xml
    self.programPath = programPath
}

}

let jsons = Program
let jsonString = jsons.toJSONString()

相关问题