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