diff --git a/MVMCoreUI/Atomic/Atoms/Views/RadioBoxModel.swift b/MVMCoreUI/Atomic/Atoms/Views/RadioBoxModel.swift index caf26800..b2a23c6a 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/RadioBoxModel.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/RadioBoxModel.swift @@ -7,7 +7,7 @@ // import Foundation -@objcMembers public class RadioBoxModel: MoleculeModelProtocol, FormFieldProtocol { +@objcMembers public class RadioBoxModel: MoleculeModelProtocol { public static var identifier: String = "radioBox" public var text: String public var subText: String? @@ -17,9 +17,6 @@ import Foundation public var enabled: Bool = true public var strikethrough: Bool = false public var fieldValue: String? - public var fieldKey: String? - public var groupName: String = FormValidator.defaultGroupName - public var baseValue: AnyHashable? private enum CodingKeys: String, CodingKey { case moleculeName @@ -31,12 +28,6 @@ import Foundation case enabled case strikethrough case fieldValue - case fieldKey - case groupName - } - - public func formFieldValue() -> AnyHashable? { - return selected } required public init(from decoder: Decoder) throws { @@ -60,11 +51,6 @@ import Foundation } fieldValue = try typeContainer.decodeIfPresent(String.self, forKey: .fieldValue) - fieldKey = try typeContainer.decodeIfPresent(String.self, forKey: .fieldKey) - if let groupName = try typeContainer.decodeIfPresent(String.self, forKey: .groupName) { - self.groupName = groupName - } - baseValue = selected } public func encode(to encoder: Encoder) throws { @@ -78,7 +64,5 @@ import Foundation try container.encode(enabled, forKey: .enabled) try container.encode(strikethrough, forKey: .strikethrough) try container.encodeIfPresent(fieldValue, forKey: .fieldValue) - try container.encodeIfPresent(fieldKey, forKey: .fieldKey) - try container.encode(groupName, forKey: .groupName) } }