TipTap Blocks & custom property editor

From our custom property editor (Lit element) we are opening the Rich Text Editor (TipTap) in an overlay via navigating to /<workspacePath>/create/<RTE Key>. We are then using the “contents” Observable from the UMB_BLOCK_RTE_MANAGER_CONTEXT within our custom property editor, to load the content that was entered within the RTE and save it in our needed structure. Thereby, the format in which the content is received differs from the format that the content delivery api returns, i.e. from the UMB_BLOCK_RTE_MANAGER_CONTEXT we receive the following format:

"blocks": {
  "layout": {
    "Umbraco.RichText": [
      {
        "contentKey": "41af3bd7-72c5-461d-8e6e-86e45111b8fb",
        "displayInline": true
      }
    ]
  },
  "contentData": [
    {
      "key": "41af3bd7-72c5-461d-8e6e-86e45111b8fb",
      "contentTypeKey": "56603ed8-4686-4180-acfa-816bbb11ca5b",
      "values": [
        {
          "editorAlias": "Umbraco.TextBox",
          "culture": null,
          "segment": null,
          "alias": "text",
          "value": "Test Button"
        },
        {
          "editorAlias": "Umbraco.DropDown.Flexible",
          "culture": null,
          "segment": null,
          "alias": "buttonStyle",
          "value": [
            "secondary"
          ]
        }
      ]
    }
  ],
  "settingsData": [],
  "expose": [
    {
      "contentKey": "41af3bd7-72c5-461d-8e6e-86e45111b8fb",
      "culture": null,
      "segment": null
    }
  ]
}

whereas when using the same RTE directly within Umbraco (outside of our custom property editor) the following format is returned:

"blocks": [
  {
    "content": {
      "contentType": "button",
      "id": "4420c472-9494-43aa-98a4-838c77a0d838",
      "properties": {
        "text": "Test Button",
        "buttonStyle": "secondary",
        "isLarge": null,
        "startIcon": null,
        "endIcon": null,
        "link": null
      }
    },
    "settings": null
  }
]

Is there a way to get the RTE content data from within our custom property editor in the format below (especially with its “contentType” and “properties” object) or is there a built in mechanism that we can use to transform it from one format to the other? If we have to do the transformation manually, is there a way to get the “contentType” from a block’s “contentTypeKey”?