mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
36 lines
700 B
Swift
36 lines
700 B
Swift
// Generated code. Do not modify.
|
|
|
|
import CommonCore
|
|
import Foundation
|
|
import Serialization
|
|
import TemplatesSupport
|
|
|
|
@frozen
|
|
public enum DivDrawable {
|
|
case divShapeDrawable(DivShapeDrawable)
|
|
|
|
public var value: Serializable {
|
|
switch self {
|
|
case let .divShapeDrawable(value):
|
|
return value
|
|
}
|
|
}
|
|
}
|
|
|
|
#if DEBUG
|
|
extension DivDrawable: Equatable {
|
|
public static func ==(lhs: DivDrawable, rhs: DivDrawable) -> Bool {
|
|
switch (lhs, rhs) {
|
|
case let (.divShapeDrawable(l), .divShapeDrawable(r)):
|
|
return l == r
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
extension DivDrawable: Serializable {
|
|
public func toDictionary() -> [String: ValidSerializationValue] {
|
|
return value.toDictionary()
|
|
}
|
|
}
|