-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing commonMain folder to fuel-kotlinx-serialization project (#…
…914) * Oops, how i forget to check this. :( * Update ResponseExtensions.kt * Update ResponseExtensions.kt * Update ResponseExtensions.kt
- Loading branch information
Showing
4 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
fuel-kotlinx-serialization/src/commonMain/kotlin/fuel/serialization/ResponseExtensions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package fuel.serialization | ||
|
||
import com.github.kittinunf.result.Result | ||
import fuel.HttpResponse | ||
import kotlinx.serialization.DeserializationStrategy | ||
import kotlinx.serialization.json.Json | ||
|
||
public expect fun <T : Any> HttpResponse.toJson( | ||
json: Json = Json, | ||
deserializationStrategy: DeserializationStrategy<T> | ||
): Result<T?, Throwable> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters