copy
fun copy(endpointId: String = this.endpointId, method: String = this.method, durationMs: Long = this.durationMs, statusCode: Int? = this.statusCode, errorType: String? = this.errorType, isRetryable: Boolean = this.isRetryable, attempt: Int = this.attempt): NetworkEvent
Preserves the copy method and copy$default bridge generated by the pre-0.4 data class.
fun copy(endpointId: String, method: String, durationMs: Long, statusCode: Int?, errorType: String?, isRetryable: Boolean, attempt: Int, isFinalAttempt: Boolean): NetworkEvent
Copies an event while explicitly changing whether it is the final attempt.