Device
public struct Device : Codable, @unchecked Sendable
Struct representing a device.
- property id: The ID of the device.
- property type: The type of the device.
- property title: The title of the device.
- property description: The description of the device.
- property iconSrc: The icon source of the device.
- property isDefault: The default value of the device.
- property value: The value of the device.
- method populateDevices: Populates a list of devices from the JSON data.
-
Declaration
Swift
public var id: String?
-
Declaration
Swift
public var type: String
-
Declaration
Swift
public var title: String
-
Declaration
Swift
public var description: String?
-
Declaration
Swift
public var iconSrc: URL
-
Declaration
Swift
public var isDefault: Bool?
-
Declaration
Swift
public var value: String?