code: func JSONMapToStateValue(m map[string]interface{}, block *configschema.Block) (cty.Value, error) {
  	var val cty.Value
  
  	js, err := json.Marshal(m)
  	if err != nil {
  		return val, err
  	}
  
  	val, err = ctyjson.Unmarshal(js, block.ImpliedType())
  	if err != nil {
  		return val, err
  	}
  
  	return block.CoerceValue(val)
  }
docs: // JSONMapToStateValue takes a generic json map[string]interface{} and converts it
  // to the specific type, ensuring that the values conform to the schema.