Files
denlvovich e001d74afe Update to VGSL6.0
4f8b5f480ade3f347d5f0a2d01a1618069bcb846
2024-07-12 20:33:42 +03:00

41 lines
1.0 KiB
Swift

// Generated code. Do not modify.
@testable import DivKit
import Foundation
import Serialization
import VGSL
public final class EntityWithEntityProperty {
public static let type: String = "entity_with_entity_property"
public let entity: Entity // default value: .entityWithStringEnumProperty(EntityWithStringEnumProperty(property: .value(.second)))
init(
entity: Entity? = nil
) {
self.entity = entity ?? .entityWithStringEnumProperty(EntityWithStringEnumProperty(property: .value(.second)))
}
}
#if DEBUG
extension EntityWithEntityProperty: Equatable {
public static func ==(lhs: EntityWithEntityProperty, rhs: EntityWithEntityProperty) -> Bool {
guard
lhs.entity == rhs.entity
else {
return false
}
return true
}
}
#endif
extension EntityWithEntityProperty: Serializable {
public func toDictionary() -> [String: ValidSerializationValue] {
var result: [String: ValidSerializationValue] = [:]
result["type"] = Self.type
result["entity"] = entity.toDictionary()
return result
}
}