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