You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: vulnerability_metadata.go
    path of file: ./repos/grype/grype/db/v4/store/model
    
    the code of the file until where you have to start completion: package model

import (
	"encoding/json"
	"fmt"

	sqlite "github.com/anchore/grype/grype/db/internal/sqlite"
	v4 "github.com
    
func (m *VulnerabilityMetadataModel) Inflate() (v4.VulnerabilityMetadata, error) {
	var links []string
	var cvss []v4.Cvss

	if err := json.Unmarshal(m.URLs.ToByteSlice(), &links); err != nil {
		return v4.VulnerabilityMetadata{}, fmt.Errorf("unable to unmarshal URLs (%+v): %w", m.URLs, err)
	}

	err := json.Unmarshal(m.Cvss.ToByteSlice(), &cvss)
	if err != nil {
		return v4.VulnerabilityMetadata{}, fmt.Errorf("unable to unmarshal cvss data (%+v): %w", m.Cvss, err)
	}

	return v4.VulnerabilityMetadata{
		ID:           m.ID,
		Namespace:    m.Namespace,
		DataSource:   m.DataSource,
		RecordSource: m.RecordSource,
		Severity:     m.Severity,
		URLs:         links,
		Description:  m.Description,
		Cvss:         cvss,
	}, nil
}