package dev.inmo.postssystem.features.content.text.common

import dev.inmo.postssystem.features.content.common.Content
import dev.inmo.postssystem.features.content.common.ContentSerializersModuleConfigurator
import kotlinx.serialization.modules.PolymorphicModuleBuilder

object TextContentSerializerModuleConfigurator : ContentSerializersModuleConfigurator.Element {
    override fun PolymorphicModuleBuilder<Content>.invoke() {
        subclass(TextContent::class, TextContent.serializer())
    }
}
