mvm_core_ui/MVMCoreUI/Models/MoleculeProtocol.swift
Suresh, Kamlesh 205c83c097 intial draft
2019-10-28 14:47:42 -04:00

17 lines
344 B
Swift

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