Update GsonExtensions.kt

This commit is contained in:
bluefireoly
2020-11-08 00:05:14 +01:00
parent 70ea4fbcd9
commit 7c8b486a1b

View File

@@ -6,7 +6,7 @@ import java.net.URL
internal fun JsonObject.getStringOrNull(key: String): String? {
return try {
this[key].toString()
this[key].asString
} catch (exc: Exception) {
null
}