update
This commit is contained in:
parent
8422362e77
commit
b53f7e7786
@ -12,9 +12,9 @@ import Foundation
|
||||
public static var identifier: String = "listItem"
|
||||
public var moleculeName: String?
|
||||
public var molecule: MoleculeProtocol?
|
||||
public var actionMap: ActionMapModel?
|
||||
public var actionMap: ActionModel?
|
||||
|
||||
public init(molecule: MoleculeProtocol?, actionMap: ActionMapModel?) {
|
||||
public init(molecule: MoleculeProtocol?, actionMap: ActionModel?) {
|
||||
self.molecule = molecule
|
||||
self.actionMap = actionMap
|
||||
self.moleculeName = Self.identifier
|
||||
@ -30,7 +30,7 @@ import Foundation
|
||||
let typeContainer = try decoder.container(keyedBy: CodingKeys.self)
|
||||
self.moleculeName = try typeContainer.decode(String.self, forKey: .moleculeName)
|
||||
self.molecule = try typeContainer.decodeIfPresent(codingKey: .molecule)
|
||||
self.actionMap = try typeContainer.decodeIfPresent(ActionMapModel.self, forKey: .actionMap)
|
||||
self.actionMap = try typeContainer.decodeIfPresent(ActionModel.self, forKey: .actionMap)
|
||||
}
|
||||
|
||||
public func encode(to encoder: Encoder) throws {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user