package com.suno.android.common_networking.extensions import kotlinx.serialization.json.Json import okhttp3.ResponseBody // Removed suspend keyword since operations are synchronous fun ResponseBody.xGetErrorResponse(): ErrorResponse? = try { val json = Json { ignoreUnknownKeys = true isLenient = true prettyPrint = true } json.decodeFromString(this.string()) } catch (e: Exception) { null }