FWComponentModelWrapper
struct FWComponentModelWrapper : Codable
Data structure for components being decoded.
-
Component data decoded in their respective format
Declaration
Swift
var componentModel: FWComponentModel -
Instantiates a wrapper for FWComponentModel
Declaration
Swift
init(_ base: FWComponentModel)Parameters
basethe component model to be contained in this wrapper
-
Types of component supported by Formworks.
For decoding techniques of each of these cases, please refer to the
See moreinit(from decoder: Decoder) throwsmethod fromFWComponentModelWrapper.Declaration
Swift
enum Types : String, CodingKey -
Creates a new instance by decoding from the given decoder.
This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.
Declaration
Swift
init(from decoder: Decoder) throwsParameters
decoderThe decoder to read data from.
-
Encodes this value into the given encoder.
If the value fails to encode anything,
encoderwill encode an empty keyed container in its place.This function throws an error if any values are invalid for the given encoder’s format.
Declaration
Swift
func encode(to encoder: Encoder) throwsParameters
encoderThe encoder to write data to.
View on GitHub
FWComponentModelWrapper Structure Reference