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