Creating new objects in RealmKotlin migration

Hi.
I am currently porting an Android app from RealmJava to RealmKotlin and I have to support the old migrations that were implemented in the app. However, I do need to create a new object in a table which was added in one schema version and then move all objects from one table into one column of it. But, I don’t see any method of creating a new object on the DynamicRealms provided in the AutomaticSchemaMigration callback. Is this not supported in RealmKotlin or is there another way?
Specifically, this was the old code:

val stash: DynamicRealmObject = realm.createObject(StashStorage::class.java.simpleName, "Inventory")
            val items: RealmResults<DynamicRealmObject> = realm.where(InventoryItemDb::class.java.simpleName).findAll()
            for (item in items) {
                stash.getList("items").add(item)
            }