Skip to content

Commit 3b00fb4

Browse files
committed
Remove JsonObject stuff
1 parent 17384f8 commit 3b00fb4

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

firebase-dataconnect/src/main/kotlin/com/google/firebase/dataconnect/core/DataConnectOperationFailureResponseImpl.kt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,13 @@ import com.google.firebase.dataconnect.DataConnectOperationFailureResponse
2020
import com.google.firebase.dataconnect.DataConnectOperationFailureResponse.ErrorInfo
2121
import com.google.firebase.dataconnect.DataConnectPathSegment
2222
import java.util.Objects
23-
import kotlinx.serialization.json.JsonObject
2423

2524
internal class DataConnectOperationFailureResponseImpl<Data>(
2625
override val rawData: Map<String, Any?>?,
2726
override val data: Data?,
2827
override val errors: List<ErrorInfoImpl>
2928
) : DataConnectOperationFailureResponse<Data> {
3029

31-
/**
32-
* Creates and returns a [JsonObject] that is equivalent to [rawData].
33-
*
34-
* If this function is called, the application must take a Gradle dependency on `
35-
* [org.jetbrains.kotlinx:kotlinx-serialization-json](https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-serialization-json)
36-
* `; otherwise, an error such as [NoClassDefFoundError] will be thrown at runtime.
37-
*
38-
* @return `null` if [rawData] is `null`; otherwise, a newly-created [JsonObject] object that has
39-
* the same structure and information as [rawData] but represented using [JsonObject].
40-
*/
41-
// TODO(dconeybe) move this to the public API once it is properly implemented and tested.
42-
fun toJson(): JsonObject? = TODO()
43-
4430
override fun toString(): String =
4531
"DataConnectOperationFailureResponseImpl(rawData=$rawData, data=$data, errors=$errors)"
4632

0 commit comments

Comments
 (0)