Skip to content

Commit 11f77fb

Browse files
authored
Fixed parseJson inline problem
1 parent 62662cb commit 11f77fb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • library/src/commonMain/kotlin/com/lagradost/cloudstream3/utils

library/src/commonMain/kotlin/com/lagradost/cloudstream3/utils/AppUtils.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ object AppUtils {
6767
}
6868
}
6969

70+
@InternalAPI
71+
fun <T : Any> parseJson(
72+
value: String,
73+
kClass: KClass<T>
74+
): T = parseJson(value, kClass, null, null)
75+
7076
@InternalAPI
7177
fun <T : Any> parseJson(
7278
value: String,

0 commit comments

Comments
 (0)