import Foundation public protocol MoleculeProtocol: Model { var moleculeName: String? { get } var backgroundColor: String? { get } var dictionary: [AnyHashable: Any]? { get } } extension MoleculeProtocol { public var moleculeName: String? { get { return Self.identifier } } public var dictionary: [AnyHashable: Any]? { return toJSON() } }