func (memorydomain *MemoryDomain) UnmarshalJSON(b []byte) error {
	type temp MemoryDomain
	var t struct {
		temp
		MemoryChunks common.Link
	}
	err := json.Unmarshal(b, &t)
	if err != nil {
		return err
	}
	*memorydomain = MemoryDomain(t.temp)
	memorydomain.memoryChunks = string(t.MemoryChunks)
	return nil
}
UnmarshalJSON unmarshals a MemoryDomain object from the raw JSON.
package redfish
import (
	"encoding/json"
	"github.com/stmcginnis/gofish/common"
)
type MemoryDomain struct {
	common.Entity
	ODataContext string `json:"@odata.context"`
	ODataType string `json:"@odata.type"`
	AllowsBlockProvisioning bool
	AllowsMemoryChunkCreation bool
	AllowsMirroring bool
	AllowsSparing bool
	Description string
	InterleavableMemorySets []MemorySet
	memoryChunks string
}