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

44 lines
911 B
Swift

// Generated code. Do not modify.
import Foundation
import Serialization
import VGSL
public final class ArrayVariable: @unchecked Sendable {
public static let type: String = "array"
public let name: String
public let value: [Any]
init(
name: String,
value: [Any]
) {
self.name = name
self.value = value
}
}
#if DEBUG
// WARNING: this == is incomplete because of [String: Any] in class fields
extension ArrayVariable: Equatable {
public static func ==(lhs: ArrayVariable, rhs: ArrayVariable) -> Bool {
guard
lhs.name == rhs.name
else {
return false
}
return true
}
}
#endif
extension ArrayVariable: Serializable {
public func toDictionary() -> [String: ValidSerializationValue] {
var result: [String: ValidSerializationValue] = [:]
result["type"] = Self.type
result["name"] = name
result["value"] = value
return result
}
}