1 // Copyright 2015-present 650 Industries. All rights reserved. 2 3 import Foundation 4 5 @objc 6 open class DevMenuItem: NSObject { 7 @objc(DevMenuItemType) 8 public enum ItemType: Int { 9 case Action = 1 10 case Group = 2 11 case Screen = 3 12 case Link = 4 13 case SelectionList = 5 14 } 15 16 @objc 17 public let type: ItemType 18 19 init(type: ItemType) { 20 self.type = type 21 } 22 23 @objc serializenull24 open func serialize() -> [String: Any] { 25 return [ 26 "type": type.rawValue 27 ] 28 } 29 } 30