Argument
struct Argument : Codable, Equatable
extension Flow.Argument: CustomStringConvertible
The argument for Cadence code for encoding and decoding
-
The type of the argument in
Flow.Cadence.FType
Declaration
Swift
public let type: Cadence.FType
-
The value of the argument in
Flow.Cadence.FValue
Declaration
Swift
public let value: Cadence.FValue
-
Encode argument into json data.
Declaration
Swift
public var jsonData: Data? { get }
-
Encode argument into json string.
Declaration
Swift
public var jsonString: String? { get }
-
Initial argument with type and value
-
Initial argument with value in
Flow.Cadence.FValue
type -
Undocumented
Declaration
Swift
public init?(jsonData: Data)
-
Undocumented
Declaration
Swift
public init?(jsonString: String)
-
Decode argument from json string
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Undocumented
Declaration
Swift
public func decode<T>() throws -> T where T : Decodable
-
Undocumented
Declaration
Swift
public func decode<T>(_: T.Type) throws -> T where T : Decodable
-
Undocumented
Declaration
Swift
public func decode() -> Any?
-
Declaration
Swift
public var description: String { get }
-
The data structure for
See more.path
argument type More detail can be found here: https://docs.onflow.org/cadence/json-cadence-spec/#pathDeclaration
Swift
struct Path : Codable, Equatable
-
The data structure for
See more.struct, .resource, .event, .contract, .enum
argument type More detail can be found here: https://docs.onflow.org/cadence/json-cadence-spec/#composites-struct-resource-event-contract-enumDeclaration
Swift
struct Event : Codable, Equatable
-
The data structure for
See more.reference
argument typeDeclaration
Swift
struct Reference : Codable, Equatable
-
The data structure for
See more.dictionary
argument type More detail can be found here: https://docs.onflow.org/cadence/json-cadence-spec/#dictionaryDeclaration
Swift
struct Dictionary : Codable, Equatable
-
The data structure for
See more.capability
argument type More detail can be found here: https://docs.onflow.org/cadence/json-cadence-spec/#capabilityDeclaration
Swift
struct Capability : Codable, Equatable
-
The data structure for
See more.type
argument type More detail can be found here: https://docs.onflow.org/cadence/json-cadence-spec/#typeDeclaration
Swift
struct StaticType : Codable, Equatable