added ParewntMoleculeModelProtocol
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
fb459cfdd5
commit
cdc8b7310d
@ -8,7 +8,7 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
public class TwoLinkViewModel: MoleculeModelProtocol {
|
||||
public class TwoLinkViewModel: ParentMoleculeModelProtocol {
|
||||
public static var identifier: String = "twoLinkView"
|
||||
public var id: String = UUID().uuidString
|
||||
|
||||
@ -16,6 +16,8 @@ public class TwoLinkViewModel: MoleculeModelProtocol {
|
||||
public var rightLink: LinkModel?
|
||||
public var leftLink: LinkModel?
|
||||
|
||||
public var children: [MoleculeModelProtocol] { [rightLink, leftLink].compactMap{ $0 } }
|
||||
|
||||
private enum CodingKeys: String, CodingKey {
|
||||
case id
|
||||
case moleculeName
|
||||
|
||||
Loading…
Reference in New Issue
Block a user