/// /// NitroRequest.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.nitrofetch import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip /** * Represents the JavaScript object/struct "NitroRequest". */ @DoNotStrip @Keep data class NitroRequest( @DoNotStrip @Keep val url: String, @DoNotStrip @Keep val method: NitroRequestMethod?, @DoNotStrip @Keep val headers: Array?, @DoNotStrip @Keep val bodyString: String?, @DoNotStrip @Keep val bodyBytes: String?, @DoNotStrip @Keep val bodyFormData: Array?, @DoNotStrip @Keep val timeoutMs: Double?, @DoNotStrip @Keep val followRedirects: Boolean?, @DoNotStrip @Keep val prefetchCacheTtlMs: Double?, @DoNotStrip @Keep val requestId: String? ) { /* primary constructor */ companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(url: String, method: NitroRequestMethod?, headers: Array?, bodyString: String?, bodyBytes: String?, bodyFormData: Array?, timeoutMs: Double?, followRedirects: Boolean?, prefetchCacheTtlMs: Double?, requestId: String?): NitroRequest { return NitroRequest(url, method, headers, bodyString, bodyBytes, bodyFormData, timeoutMs, followRedirects, prefetchCacheTtlMs, requestId) } } }