chore: rename project to clawdbot
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import ClawdbotKit
|
||||
import Foundation
|
||||
|
||||
enum ChatPayloadDecoding {
|
||||
static func decode<T: Decodable>(_ payload: AnyCodable, as _: T.Type = T.self) throws -> T {
|
||||
let data = try JSONEncoder().encode(payload)
|
||||
return try JSONDecoder().decode(T.self, from: data)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user