Files
pkurchatov a9ca0f77de ExpressionResolver refactoring
347b85eafc0cee667b3439ab8b866c8461e7b542
2024-04-29 16:52:59 +03:00

34 lines
729 B
Swift

// Generated code. Do not modify.
import CommonCore
import Foundation
import Serialization
public final class EntityWithOptionalProperty {
public static let type: String = "entity_with_optional_property"
public let property: Expression<String>?
public func resolveProperty(_ resolver: ExpressionResolver) -> String? {
resolver.resolveString(property)
}
init(
property: Expression<String>? = nil
) {
self.property = property
}
}
#if DEBUG
extension EntityWithOptionalProperty: Equatable {
public static func ==(lhs: EntityWithOptionalProperty, rhs: EntityWithOptionalProperty) -> Bool {
guard
lhs.property == rhs.property
else {
return false
}
return true
}
}
#endif