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