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

44 lines
863 B
Swift

// Generated code. Do not modify.
import Foundation
import Serialization
import VGSL
public final class IntegerVariable: Sendable {
public static let type: String = "integer"
public let name: String
public let value: Int
init(
name: String,
value: Int
) {
self.name = name
self.value = value
}
}
#if DEBUG
extension IntegerVariable: Equatable {
public static func ==(lhs: IntegerVariable, rhs: IntegerVariable) -> Bool {
guard
lhs.name == rhs.name,
lhs.value == rhs.value
else {
return false
}
return true
}
}
#endif
extension IntegerVariable: Serializable {
public func toDictionary() -> [String: ValidSerializationValue] {
var result: [String: ValidSerializationValue] = [:]
result["type"] = Self.type
result["name"] = name
result["value"] = value
return result
}
}