17 lines
341 B
Swift
17 lines
341 B
Swift
import Foundation
|
|
|
|
public protocol MoleculeProtocol: Model {
|
|
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()
|
|
}
|
|
}
|