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: TS29122PfdManagement.gen.go
    path of file: ./repos/magma/feg/gateway/sbi/specs/TS29122PfdManagement
    
    the code of the file until where you have to start completion: // Package TS29122PfdManagement provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/deepmap/oapi-codegen version v1.9.0 DO NOT EDIT.
package TS29122PfdManagement

import (
	"encoding/json"
	"fmt"

	externa
    
func (a PfdManagement_PfdReports) MarshalJSON() ([]byte, error) {
	var err error
	object := make(map[string]json.RawMessage)

	for fieldName, field := range a.AdditionalProperties {
		object[fieldName], err = json.Marshal(field)
		if err != nil {
			return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err)
		}
	}
	return json.Marshal(object)
}