Files
pkurchatov 149b80a37f Sendable DivData
commit_hash:ae183ed8d06f2c89c8693f59bedba49752638377
2025-01-16 16:25:07 +03:00

43 lines
893 B
Swift

// Generated code. Do not modify.
import Foundation
import Serialization
import VGSL
public final class BooleanValue: Sendable {
public static let type: String = "boolean"
public let value: Expression<Bool>
public func resolveValue(_ resolver: ExpressionResolver) -> Bool? {
resolver.resolveNumeric(value)
}
init(
value: Expression<Bool>
) {
self.value = value
}
}
#if DEBUG
extension BooleanValue: Equatable {
public static func ==(lhs: BooleanValue, rhs: BooleanValue) -> Bool {
guard
lhs.value == rhs.value
else {
return false
}
return true
}
}
#endif
extension BooleanValue: Serializable {
public func toDictionary() -> [String: ValidSerializationValue] {
var result: [String: ValidSerializationValue] = [:]
result["type"] = Self.type
result["value"] = value.toValidSerializationValue()
return result
}
}