From 3c1afd9080fc7e06ffd58e5831023d9351150533 Mon Sep 17 00:00:00 2001 From: Kyle Matthew Hedden Date: Thu, 8 Apr 2021 14:21:53 -0400 Subject: [PATCH] move to new molecule decoding convenience method --- .../ListLeftVariableIconWithRightCaretModel.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableIconWithRightCaretModel.swift b/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableIconWithRightCaretModel.swift index 5e204eda..186ad988 100644 --- a/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableIconWithRightCaretModel.swift +++ b/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableIconWithRightCaretModel.swift @@ -61,9 +61,9 @@ public class ListLeftVariableIconWithRightCaretModel: ListItemModel, ParentMolec required public init(from decoder: Decoder) throws { let typeContainer = try decoder.container(keyedBy: CodingKeys.self) - leftLabel = try typeContainer.decodeMoleculeIfPresent(codingKey: .leftLabel)! - rightLabel = try typeContainer.decodeMoleculeIfPresent(codingKey: .rightLabel)! - image = try typeContainer.decodeMoleculeIfPresent(codingKey: .image)! + leftLabel = try typeContainer.decodeMolecule(codingKey: .leftLabel) + rightLabel = try typeContainer.decodeMolecule(codingKey: .rightLabel) + image = try typeContainer.decodeMolecule(codingKey: .image) try super.init(from: decoder) }