code: func (rc *ResourceInstanceChange) Encode(ty cty.Type) (*ResourceInstanceChangeSrc, error) {
  	cs, err := rc.Change.Encode(ty)
  	if err != nil {
  		return nil, err
  	}
  	return &ResourceInstanceChangeSrc{
  		Addr:            rc.Addr,
  		DeposedKey:      rc.DeposedKey,
  		ProviderAddr:    rc.ProviderAddr,
  		ChangeSrc:       *cs,
  		RequiredReplace: rc.RequiredReplace,
  		Private:         rc.Private,
  	}, err
  }
docs: // Encode produces a variant of the reciever that has its change values
  // serialized so it can be written to a plan file. Pass the implied type of the
  // corresponding resource type schema for correct operation.