/// /// NativeListItem.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © Marc Rousavy @ Margelo /// package com.margelo.nitro.reactnativelist import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects import com.margelo.nitro.core.AnyMap /** * Represents the JavaScript object/struct "NativeListItem". */ @DoNotStrip @Keep data class NativeListItem( @DoNotStrip @Keep val key: String, @DoNotStrip @Keep val type: String, @DoNotStrip @Keep val width: Double?, @DoNotStrip @Keep val height: Double?, @DoNotStrip @Keep val data: AnyMap ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is NativeListItem) return false return Objects.deepEquals(this.key, other.key) && Objects.deepEquals(this.type, other.type) && Objects.deepEquals(this.width, other.width) && Objects.deepEquals(this.height, other.height) && Objects.deepEquals(this.data, other.data) } override fun hashCode(): Int { return arrayOf( key, type, width, height, data ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(key: String, type: String, width: Double?, height: Double?, data: AnyMap): NativeListItem { return NativeListItem(key, type, width, height, data) } } }