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.FTypeDeclaration
Swift
public let type: Cadence.FType -
The value of the argument in
Flow.Cadence.FValueDeclaration
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.FValuetype -
Declaration
Swift
public init?(_ value: FlowEncodable) -
Declaration
Swift
public init?(jsonData: Data) -
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 -
Declaration
Swift
public func decode<T>() throws -> T where T : Decodable -
Declaration
Swift
public func decode<T>(_: T.Type) throws -> T where T : Decodable -
Declaration
Swift
public func decode() -> Any? -
Declaration
Swift
public var description: String { get } -
The data structure for
See more.pathargument 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, .enumargument 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.referenceargument typeDeclaration
Swift
struct Reference : Codable, Equatable -
The data structure for
See more.dictionaryargument 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.capabilityargument 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.typeargument type More detail can be found here: https://docs.onflow.org/cadence/json-cadence-spec/#typeDeclaration
Swift
struct StaticType : Codable, Equatable
View on GitHub