Skip to content

Commit e900794

Browse files
committed
chore: revert kotlin fix
1 parent 7738cff commit e900794

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

templates/kotlin/src/main/kotlin/io/appwrite/extensions/JsonExtensions.kt.twig

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
package {{ sdk.namespace | caseDot }}.extensions
22

33
import com.google.gson.Gson
4-
import com.google.gson.GsonBuilder
5-
import com.google.gson.reflect.TypeToken
6-
import {{ sdk.namespace | caseDot }}.json.PreciseNumberAdapter
7-
8-
val gson = GsonBuilder().registerTypeAdapter(
9-
object : TypeToken<Map<String, Any>>(){}.type,
10-
PreciseNumberAdapter()
11-
).create()
4+
5+
val gson = Gson()
6+
127
fun Any.toJson(): String =
138
gson.toJson(this)
149

0 commit comments

Comments
 (0)