Swift Protocol
protocol JSONCoder : Sendable
func decode<T>(_ type: T.Type, from data: Data) throws(CrossmintServiceError) -> T where T : Decodable
func encode<T>(_ instance: T) throws(CrossmintServiceError) -> Data where T : Encodable
func encodeRequest<T, E>(_ request: T, errorType: E.Type) throws(E) -> Data where T : Encodable, E : ServiceError
Was this page helpful?