Files
feldspar e234cd83fa Added untyped template resolver
commit_hash:299c999f2d6caad74d8568059e890770d7a6b1f2
2026-02-13 12:08:22 +03:00

46 lines
1.1 KiB
Swift

// Generated code. Do not modify.
import Foundation
import Serialization
import VGSL
public final class DivPhoneInputMask: DivInputMaskBase, Sendable {
public static let type: String = "phone"
public let rawTextVariable: String
public convenience init(dictionary: [String: Any], context: ParsingContext) throws {
self.init(
rawTextVariable: try dictionary.getField("raw_text_variable", context: context)
)
}
init(
rawTextVariable: String
) {
self.rawTextVariable = rawTextVariable
}
}
#if DEBUG
extension DivPhoneInputMask: Equatable {
public static func ==(lhs: DivPhoneInputMask, rhs: DivPhoneInputMask) -> Bool {
guard
lhs.rawTextVariable == rhs.rawTextVariable
else {
return false
}
return true
}
}
#endif
extension DivPhoneInputMask: Serializable {
@_optimize(size)
public func toDictionary() -> [String: ValidSerializationValue] {
var result: [String: ValidSerializationValue] = [:]
result["type"] = Self.type
result["raw_text_variable"] = rawTextVariable
return result
}
}