/// /// NativeLinearListLayoutConfig.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 /** * Represents the JavaScript object/struct "NativeLinearListLayoutConfig". */ @DoNotStrip @Keep data class NativeLinearListLayoutConfig( @DoNotStrip @Keep val topInset: Double, @DoNotStrip @Keep val bottomInset: Double, @DoNotStrip @Keep val itemSpacing: Double, @DoNotStrip @Keep val itemHorizontalInset: Double, @DoNotStrip @Keep val itemVerticalInset: Double, @DoNotStrip @Keep val iosConfig: NativeLinearListLayoutIOSConfig? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is NativeLinearListLayoutConfig) return false return Objects.deepEquals(this.topInset, other.topInset) && Objects.deepEquals(this.bottomInset, other.bottomInset) && Objects.deepEquals(this.itemSpacing, other.itemSpacing) && Objects.deepEquals(this.itemHorizontalInset, other.itemHorizontalInset) && Objects.deepEquals(this.itemVerticalInset, other.itemVerticalInset) && Objects.deepEquals(this.iosConfig, other.iosConfig) } override fun hashCode(): Int { return arrayOf( topInset, bottomInset, itemSpacing, itemHorizontalInset, itemVerticalInset, iosConfig ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(topInset: Double, bottomInset: Double, itemSpacing: Double, itemHorizontalInset: Double, itemVerticalInset: Double, iosConfig: NativeLinearListLayoutIOSConfig?): NativeLinearListLayoutConfig { return NativeLinearListLayoutConfig(topInset, bottomInset, itemSpacing, itemHorizontalInset, itemVerticalInset, iosConfig) } } }