Tobias Wohlfarth
02/17/2023, 4:32 PMfullsize_url: "https://...."
image_url: "https://...."
In my Data Class these should be represented by specific URL Types.
Which one should i use java.net.URL or io.ktor.http.Url ? Is there a ready to use Serializer for any of those both?Adam S
02/17/2023, 5:43 PMAdam S
02/18/2023, 3:00 PM@file:UseSerializers(
UrlSerializer::class,
FooSerializer::class,
BarSerializer::class,
// ...
)
Adam S
02/18/2023, 3:03 PMtypealias UrlSerialized = @Serialized(with = UrlSerializer::class) URL
that would save having to copy-paste the @file:UserSerializers()
in multiple filesEmil Kantis
02/18/2023, 4:58 PMUrlAsString
, unless it was added after 0.0.2