code: func (s *BackendState) SetConfig(val cty.Value, schema *configschema.Block) error {
  	ty := schema.ImpliedType()
  	buf, err := ctyjson.Marshal(val, ty)
  	if err != nil {
  		return err
  	}
  	s.ConfigRaw = buf
  	return nil
  }
docs: // SetConfig replaces (in-place) the type-specific configuration object using
  // the provided value and associated schema.
  //
  // An error is returned if the given value does not conform to the implied
  // type of the schema.