// Generated code. Do not modify. package com.yandex.div.reference import org.json.JSONArray import org.json.JSONObject class EntityWithComplexPropertyWithDefaultValue( @JvmField val property: Property = PROPERTY_DEFAULT_VALUE, // default value: EntityWithComplexPropertyWithDefaultValue.Property(value = Expression.constant("Default text")) ) : Hashable { private var _hash: Int? = null override fun hash(): Int { _hash?.let { return it } val hash = this::class.hashCode() + property.hash() _hash = hash return hash } fun equals(other: EntityWithComplexPropertyWithDefaultValue?, resolver: ExpressionResolver, otherResolver: ExpressionResolver): Boolean { other ?: return false return property.equals(other.property, resolver, otherResolver) } fun copy( property: Property = this.property, ) = EntityWithComplexPropertyWithDefaultValue( property = property, ) companion object { const val TYPE = "entity_with_complex_property_with_default_value" private val PROPERTY_DEFAULT_VALUE = EntityWithComplexPropertyWithDefaultValue.Property(value = Expression.constant("Default text")) } class Property( @JvmField val value: Expression, ) : Hashable { private var _hash: Int? = null override fun hash(): Int { _hash?.let { return it } val hash = this::class.hashCode() + value.hashCode() _hash = hash return hash } fun equals(other: Property?, resolver: ExpressionResolver, otherResolver: ExpressionResolver): Boolean { other ?: return false return value.evaluate(resolver) == other.value.evaluate(otherResolver) } fun copy( value: Expression = this.value, ) = Property( value = value, ) } }