mvm_core_ui/MVMCoreUI/Models/MoleculeProtocol.swift
Suresh, Kamlesh b7ff1354b8 clean up
2019-12-04 16:21:10 -05:00

18 lines
390 B
Swift

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()
}
}