Merge branch 'feature/parse' of https://gitlab.verizon.com/BPHV_MIPS/mvm_core_ui into feature/parse

This commit is contained in:
Pfeil, Scott Robert 2020-02-18 13:39:22 -05:00
commit 0360258c31

View File

@ -8,12 +8,17 @@
import UIKit
class LabelAttributeActionModel: LabelAttributeModel {
open class LabelAttributeActionModel: LabelAttributeModel {
override public class var identifier: String {
return "action"
}
var action: ActionModelProtocol
public init(_ location: Int, _ length: Int, action: ActionModelProtocol) {
self.action = action
super.init(Self.identifier, location, length)
}
required public init(from decoder: Decoder) throws {
let typeContainer = try decoder.container(keyedBy: CodingKeys.self)
action = try typeContainer.decodeModel(codingKey: .action, typeCodingKey: ActionCodingKey.actionType)