code: func (buildpack Buildpack) MarshalJSON() ([]byte, error) {
  	ccBuildpack := struct {
  		Name     string `json:"name,omitempty"`
  		Stack    string `json:"stack,omitempty"`
  		Position *int   `json:"position,omitempty"`
  		Enabled  *bool  `json:"enabled,omitempty"`
  		Locked   *bool  `json:"locked,omitempty"`
  	}{
  		Name:  buildpack.Name,
  		Stack: buildpack.Stack,
  	}
  
  	if buildpack.Position.IsSet {
  		ccBuildpack.Position = &buildpack.Position.Value
  	}
  	if buildpack.Enabled.IsSet {
  		ccBuildpack.Enabled = &buildpack.Enabled.Value
  	}
  	if buildpack.Locked.IsSet {
  		ccBuildpack.Locked = &buildpack.Locked.Value
  	}
  
  	return json.Marshal(ccBuildpack)
  }
docs: // MarshalJSON converts a Package into a Cloud Controller Package.