/// /// ContactPostalAddressInput.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.one import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "ContactPostalAddressInput". */ @DoNotStrip @Keep data class ContactPostalAddressInput( @DoNotStrip @Keep val label: String?, @DoNotStrip @Keep val street: String?, @DoNotStrip @Keep val subLocality: String?, @DoNotStrip @Keep val city: String?, @DoNotStrip @Keep val subAdministrativeArea: String?, @DoNotStrip @Keep val state: String?, @DoNotStrip @Keep val postalCode: String?, @DoNotStrip @Keep val country: String?, @DoNotStrip @Keep val isoCountryCode: String? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is ContactPostalAddressInput) return false return Objects.deepEquals(this.label, other.label) && Objects.deepEquals(this.street, other.street) && Objects.deepEquals(this.subLocality, other.subLocality) && Objects.deepEquals(this.city, other.city) && Objects.deepEquals(this.subAdministrativeArea, other.subAdministrativeArea) && Objects.deepEquals(this.state, other.state) && Objects.deepEquals(this.postalCode, other.postalCode) && Objects.deepEquals(this.country, other.country) && Objects.deepEquals(this.isoCountryCode, other.isoCountryCode) } override fun hashCode(): Int { return arrayOf( label, street, subLocality, city, subAdministrativeArea, state, postalCode, country, isoCountryCode ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(label: String?, street: String?, subLocality: String?, city: String?, subAdministrativeArea: String?, state: String?, postalCode: String?, country: String?, isoCountryCode: String?): ContactPostalAddressInput { return ContactPostalAddressInput(label, street, subLocality, city, subAdministrativeArea, state, postalCode, country, isoCountryCode) } } }