Files
divkit/client/ios/DivKit/generated_sources/StringValue.swift
T
pkurchatov 149b80a37f Sendable DivData
commit_hash:ae183ed8d06f2c89c8693f59bedba49752638377
2025-01-16 16:25:07 +03:00

43 lines
892 B
Swift

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