Terraform Provider Framework for Custom Providers: Map Objects

Going through the tutorial for creating a custom provider using the beta Terraform Provider Framework but don’t see an example of how to handle setting types.Map values returned from APIs.

For example, an API returns a map called config that looks like:

  "config": {
    "item1": "value1",
    "item2": "value2",

I can set this as types.Map in my struct but when I get the data from the api client, it is as a map[string]string value type. I tried using something like types.Map{Value: data.Config} where data.Config is the map[string]string returned from the API, but this does not work because it is not of the proper type. Any assistance or examples of how to handle these would be helpful – still navigating a lot of go and TF provider creation so there could be something I’m completely missing. Thanks.