mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
33 lines
817 B
Swift
33 lines
817 B
Swift
// Generated code. Do not modify.
|
|
|
|
import CommonCore
|
|
import Foundation
|
|
import Serialization
|
|
|
|
public final class EntityWithJsonProperty {
|
|
public static let type: String = "entity_with_json_property"
|
|
public let jsonProperty: [String: Any] // default value: { "key": "value", "items": [ "value" ] }
|
|
|
|
init(
|
|
jsonProperty: [String: Any]? = nil
|
|
) {
|
|
self.jsonProperty = jsonProperty ?? (try! JSONSerialization.jsonObject(jsonString: """
|
|
{
|
|
"key": "value",
|
|
"items": [
|
|
"value"
|
|
]
|
|
}
|
|
""") as! [String: Any])
|
|
}
|
|
}
|
|
|
|
#if DEBUG
|
|
// WARNING: this == is incomplete because of [String: Any] in class fields
|
|
extension EntityWithJsonProperty: Equatable {
|
|
public static func ==(lhs: EntityWithJsonProperty, rhs: EntityWithJsonProperty) -> Bool {
|
|
return true
|
|
}
|
|
}
|
|
#endif
|