Architecture question: Mutating data classes in Kotlin Flow

Hmmm this does give me an idea - thanks a bunch! So, just to maybe explain what I’m thinking, this project is for SSDP and some information comes from a socket, whilst a lot of other stuff comes from the XML endpoint. As a result, I can have something like (class names are just for post purposes):

data class SocketMediaDevice(
    val uuid: UUID?,
    val location: URL?
)

and then, I can have another model, which will be populated from the endpoint:

data class XMLMediaDevice(
    val modelName: String?,
    val modelNumber: Int?
)

and then just offload the XML request to the user space (at their request). I still need to have nulls, however, since in SSDP every single device/manufacturer just ends up doing whatever they want and not really follow spec. Thanks a bunch for the pointer - this helped!