EntryDecodable

public protocol EntryDecodable : AnyObject, EndpointAccessible, FlatResource, Decodable

Classes conforming to this protocol can be passed into your Client instance so that fetch methods returning may decode the JSON to your own classes before returning them in async callbacks.

It’s important to note that there is no special handling of locales so if using the locale=* query parameter, you will need to implement the special handing in your init(from decoder: Decoder) throws initializer for your class.

Example:

func fetchArray(of: Cat.self, matching: QueryON<Cat>,
then completion: @escaping ResultsHandler<MappedArrayResponse<Cat>>) -> URLSessionDataTask?