Created
January 12, 2021 09:32
-
-
Save stefanozanella/5e132455d2a02db31e14848bef476d43 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
package me.stefanozanella.sampleapp | |
import com.sksamuel.avro4k.serializer.LocalDateSerializer | |
import kotlinx.serialization.Serializable | |
import java.time.LocalDate | |
@Serializable | |
data class StockPurchase( | |
val ticker: String = "", | |
@Serializable(with = LocalDateSerializer::class) val purchaseDate: LocalDate = LocalDate.now(), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment