func APICharmOrigin(origin params.CharmOrigin) Origin {
	return Origin{
		Source:       OriginSource(origin.Source),
		Type:         origin.Type,
		ID:           origin.ID,
		Hash:         origin.Hash,
		Risk:         origin.Risk,
		Revision:     origin.Revision,
		Track:        origin.Track,
		Branch:       origin.Branch,
		Architecture: origin.Architecture,
		OS:           origin.OS,
		Series:       origin.Series,
		InstanceKey:  origin.InstanceKey,
	}
}
// APICharmOrigin is a helper function to convert params.CharmOrigin
// to an Origin.
APICharmOrigin is a helper function to convert params.CharmOrigin
to an Origin.
// APICharmOrigin is a helper function to convert params . CharmOrigin // to an Origin .
func APICharmOrigin(origin params.CharmOrigin) Origin {
	return Origin{
		Source:       OriginSource(origin.Source),
		Type:         origin.Type,
		ID:           origin.ID,
		Hash:         origin.Hash,
		Risk:         origin.Risk,
		Revision:     origin.Revision,
		Track:        origin.Track,
		Branch:       origin.Branch,
		Architecture: origin.Architecture,
		OS:           origin.OS,
		Series:       origin.Series,
		InstanceKey:  origin.InstanceKey,
	}
}
func APICharmOrigin ( origin params . CharmOrigin ) Origin { return Origin { Source : OriginSource ( origin . Source ) , Type : origin . Type , ID : origin . ID , Hash : origin . Hash , Risk : origin . Risk , Revision : origin . Revision , Track : origin . Track , Branch : origin . Branch , Architecture : origin . Architecture , OS : origin . OS , Series : origin . Series , InstanceKey : origin . InstanceKey , } }
APICharmOrigin is a helper function to convert params.CharmOrigin
to an Origin.
APICharmOrigin is a helper function to convert params . CharmOrigin to an Origin .