diff --git a/kmongo-serialization-mapping/src/main/kotlin/Serializers.kt b/kmongo-serialization-mapping/src/main/kotlin/Serializers.kt index 8bb27f9d..1898e9d6 100644 --- a/kmongo-serialization-mapping/src/main/kotlin/Serializers.kt +++ b/kmongo-serialization-mapping/src/main/kotlin/Serializers.kt @@ -346,7 +346,7 @@ internal object UUIDSerializer : KSerializer { override val descriptor: SerialDescriptor = buildClassSerialDescriptor("UuidSerializer") override fun deserialize(decoder: Decoder): UUID = - (decoder as BsonFlexibleDecoder).reader.readBinaryData().asUuid() + (decoder as FlexibleDecoder).reader.readBinaryData().asUuid() override fun serialize(encoder: Encoder, value: UUID) { (encoder as BsonEncoder).encodeUUID(value)