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

42 lines
834 B
Swift

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