URLCodable

public protocol URLCodable : Decodable, Encodable

A protocol that extends Codable and provides a template instance for URL decoding. Conforming types must provide a static template value, which serves as a blueprint for decoding URL query parameters.

  • A template instance used for decoding URL query parameters. This instance provides the structure and default values for decoding.

    Declaration

    Swift

    static var template: Self { get }