We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 511209f commit 902c8e3Copy full SHA for 902c8e3
firebase-functions/src/main/java/com/google/firebase/functions/Serializer.kt
@@ -32,7 +32,7 @@ internal class Serializer {
32
dateFormat.timeZone = TimeZone.getTimeZone("UTC")
33
}
34
35
- internal fun encode(obj: Any?): Any {
+ public fun encode(obj: Any?): Any {
36
if (obj == null || obj === JSONObject.NULL) {
37
return JSONObject.NULL
38
@@ -110,7 +110,7 @@ internal class Serializer {
110
throw IllegalArgumentException("Object cannot be encoded in JSON: $obj")
111
112
113
- internal fun decode(obj: Any?): Any? {
+ public fun decode(obj: Any?): Any? {
114
// TODO: Maybe this should throw a FirebaseFunctionsException instead?
115
if (obj == null) return null
116
if (obj is Number) {
0 commit comments