Skip to main content
Protocol
protocol JSONCoder : Sendable

Instance Methods

decode(_:from:)

func decode<T>(_ type: T.Type, from data: Data) throws(CrossmintServiceError) -> T where T : Decodable

encode(_:)

func encode<T>(_ instance: T) throws(CrossmintServiceError) -> Data where T : Encodable

encodeRequest(_:errorType:)

func encodeRequest<T, E>(_ request: T, errorType: E.Type) throws(E) -> Data where T : Encodable, E : ServiceError