public class Asset : Codable
Asset for input to SDK workflows. Represents an asset (image, video, PDF) to be edited or used as reference in SDK workflows.
## Properties
type: Content type (image, video, PDF, PSD)name: Optional display namedataType: How the asset data is encodeddata: The actual asset data
[init(type:name:dataType:data:)](#/s:9embed_sdk5AssetC4type4name8dataType0F0AcA0cG0O_SSSgAA0c4DataG0OAA0hG3MapOtcfc)
Creates an asset.
Swift
public init(type: AssetType, name: String? = nil, dataType: AssetDataType, data: DataTypeMap)
type | Asset content type |
name | Display name (optional) |
dataType | Data encoding type |
data | Asset data |
[init(from:)](#/s:Se4fromxs7Decoder_p_tKcfc)
Swift
public required init(from decoder: any Decoder) throws
[encode(to:)](#/s:SE6encode2toys7Encoder_p_tKF)
Swift
public func encode(to encoder: Encoder) throws