commonMain.com.apollographql.apollo3.api.toJson.kt Maven / Gradle / Ivy
package com.apollographql.apollo3.api
import com.apollographql.apollo3.api.json.JsonWriter
import com.apollographql.apollo3.api.json.buildJsonString
/**
*
*/
expect fun Operation.Data.toJson(jsonWriter: JsonWriter, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty)
fun Operation.Data.toJson(customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty): String = buildJsonString {
toJson(this, customScalarAdapters)
}
fun Operation.Data.toResponseJson(customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty): String = buildJsonString {
beginObject()
name("data")
toJson(this, customScalarAdapters)
endObject()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy