Created
March 20, 2022 11:22
-
-
Save le0nidas/c319f0a8c5107a2ecba33b90daea72d2 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
companion object : Parceler<Task> { | |
override fun create(parcel: Parcel): Task { | |
return Task( | |
//... | |
parcel.readParcelable() | |
) | |
} | |
override fun Task.write(parcel: Parcel, flags: Int) { | |
with(parcel) { | |
//... | |
writeParcelable(attachment) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment