added new id property to models

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-09-08 09:46:17 -05:00
parent 529dd348dd
commit 31cc35d5d3
3 changed files with 7 additions and 2 deletions

View File

@ -9,11 +9,13 @@
import MVMCoreUI
@objcMembers public class LinksModel: MoleculeModelProtocol {
@DecodableDefault.UUIDString public var id: String
public static var identifier: String = "links"
public var backgroundColor: Color?
public var links: [LinkModel]
private enum CodingKeys: String, CodingKey {
case id
case moleculeName
case backgroundColor
case links

View File

@ -13,7 +13,8 @@ open class OrderTrackerModel: MoleculeModelProtocol {
//--------------------------------------------------
// MARK: - Properties
//--------------------------------------------------
@DecodableDefault.UUIDString public var id: String
public var backgroundColor: Color?
public static var identifier: String = "orderTracker"
@ -24,6 +25,7 @@ open class OrderTrackerModel: MoleculeModelProtocol {
//--------------------------------------------------
private enum CodingKeys: String, CodingKey {
case id
case moleculeName
case backgroundColor
case steps

View File

@ -13,7 +13,7 @@ open class StepModel: MoleculeModelProtocol {
//--------------------------------------------------
// MARK: - Properties
//--------------------------------------------------
@DecodableDefault.UUIDString public var id: String
public var backgroundColor: Color?
public static var identifier: String = "step"
@ -71,6 +71,7 @@ open class StepModel: MoleculeModelProtocol {
//--------------------------------------------------
private enum CodingKeys: String, CodingKey {
case id
case moleculeName
case backgroundColor
case state