Open Classswift 6.0.3FoundationEssentials
PropertyListDecoder
PropertyListDecoder
facilitates the decoding of property list values into semantic Decodable
types.
- iOS
- 8.0+
- macOS
- 10.10+
- tvOS
- 9.0+
- watchOS
- 2.0+
class PropertyListDecoder
PropertyListDecoder
facilitates the decoding of property list values into semantic Decodable
types.
class PropertyListDecoder
import FoundationEssentials
protocol Sendable
init()
Initializes self
with default strategies.
var userInfo: [CodingUserInfoKey : Any] { get set }
Contextual user-provided information for use during decoding.
func decode<T>(_ type: T.Type, from data: Data) throws -> T where T : Decodable
Decodes a top-level value of the given type from the given property list representation.
func decode<T>(_ type: T.Type, from data: Data, configuration: T.DecodingConfiguration) throws -> T where T : DecodableWithConfiguration
func decode<T, C>(_ type: T.Type, from data: Data, configuration: C.Type) throws -> T where T : DecodableWithConfiguration, C : DecodingConfigurationProviding, T.DecodingConfiguration == C.DecodingConfiguration
func decode<T>(_ type: T.Type, from data: Data, format: inout PropertyListDecoder.PropertyListFormat) throws -> T where T : Decodable
Decodes a top-level value of the given type from the given property list representation.
func decode<T>(_ type: T.Type, from data: Data, format: inout PropertyListDecoder.PropertyListFormat, configuration: T.DecodingConfiguration) throws -> T where T : DecodableWithConfiguration
func decode<T, C>(_ type: T.Type, from data: Data, format: inout PropertyListDecoder.PropertyListFormat, configuration: C.Type) throws -> T where T : DecodableWithConfiguration, C : DecodingConfigurationProviding, T.DecodingConfiguration == C.DecodingConfiguration
enum PropertyListFormat
import Alamofire
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol DataDecoder : Sendable
Any type which can decode Data
into a Decodable
type.
protocol Escapable