IdBsonSerializer
Public Id serializer, to use explicitly when a contextual serializer is not supported by bson-kotlinx, typically for map keys:
@Serializable
data class Data(val map: Map<@Serializable(with = IdBsonSerializer::class) Id<Other>, String>)Content copied to clipboard