Directive
public struct Directive : Codable
A structure that contains payload and headers for the directive.
-
A structure that contains header fields for the directive.
Declaration
Swift
public let header: Header -
A JSON object that contains payload for the directive.
Declaration
Swift
public let payload: Data -
Creates an instance of an
Directive.Declaration
Swift
public init(header: Header, payload: Data)Parameters
headerA structure that contains header fields for the directive.
payloadA JSON object that contains payload for the directive.
-
A dictionary that contains payload for the directive.
Declaration
Swift
public var payloadDictionary: [String : AnyHashable]? { get }
View on GitHub
Directive Structure Reference