Open Instance Propertygraphqlswift.graphql 3.0.0GraphQL
dataDecodingStrategy
The strategy to use in decoding binary data. Defaults to .base64
.
var dataDecodingStrategy: DataDecodingStrategy
Other members in extension
Types
enum DataDecodingStrategy
The strategy to use for decoding
Data
values.enum DateDecodingStrategy
The strategy to use for decoding
Date
values.enum KeyDecodingStrategy
The strategy to use for automatically changing the value of keys before decoding.
enum NonConformingFloatDecodingStrategy
The strategy to use for non-Any-conforming floating-point values (IEEE 754 infinity and NaN).
Type members
init(
) Initializes
self
with default strategies.
Instance members
var dateDecodingStrategy: DateDecodingStrategy
The strategy to use in decoding dates. Defaults to
.deferredToDate
.var keyDecodingStrategy: KeyDecodingStrategy
The strategy to use for decoding keys. Defaults to
.useDefaultKeys
.var nonConformingFloatDecodingStrategy: NonConformingFloatDecodingStrategy
The strategy to use in decoding non-conforming numbers. Defaults to
.throw
.var userInfo: [CodingUserInfoKey : Any]
Contextual user-provided information for use during decoding.
func decode<T>(T.Type, from: Any
) throws -> T Decodes a top-level value of the given type from the given Any representation.