Skip to content

Instantly share code, notes, and snippets.

@stefanozanella
Created January 12, 2021 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanozanella/5e132455d2a02db31e14848bef476d43 to your computer and use it in GitHub Desktop.
Save stefanozanella/5e132455d2a02db31e14848bef476d43 to your computer and use it in GitHub Desktop.
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