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()
1条答案
按热度按时间pkln4tw61#
add this
extension Array: HandyJSON {}