Last active
August 11, 2022 13:49
-
-
Save ifucolo/03e301564eeb3f5750bdc0674cb10c17 to your computer and use it in GitHub Desktop.
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
class AndroidJobPayloadConverter { | |
@WrapperJobsResults | |
@FromJson | |
fun fromJson(json: JobsResults): List<AndroidJob> { | |
return json.jobs | |
} | |
@ToJson | |
fun toJson(@WrapperJobsResults value: List<AndroidJob>): JobsResults { | |
return JobsResults(value) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment