/// /// OneTapUser.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.nitrogooglesignin import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects import com.margelo.nitro.core.NullType /** * Represents the JavaScript object/struct "OneTapUser". */ @DoNotStrip @Keep data class OneTapUser( @DoNotStrip @Keep val id: String, @DoNotStrip @Keep val email: Variant_NullType_String?, @DoNotStrip @Keep val name: Variant_NullType_String?, @DoNotStrip @Keep val givenName: Variant_NullType_String?, @DoNotStrip @Keep val familyName: Variant_NullType_String?, @DoNotStrip @Keep val photo: Variant_NullType_String? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is OneTapUser) return false return Objects.deepEquals(this.id, other.id) && Objects.deepEquals(this.email, other.email) && Objects.deepEquals(this.name, other.name) && Objects.deepEquals(this.givenName, other.givenName) && Objects.deepEquals(this.familyName, other.familyName) && Objects.deepEquals(this.photo, other.photo) } override fun hashCode(): Int { return arrayOf( id, email, name, givenName, familyName, photo ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(id: String, email: Variant_NullType_String?, name: Variant_NullType_String?, givenName: Variant_NullType_String?, familyName: Variant_NullType_String?, photo: Variant_NullType_String?): OneTapUser { return OneTapUser(id, email, name, givenName, familyName, photo) } } }