func (g *BluezAPI) Serialize(destFile string) error {
	data, err := json.Marshal(g)
	if err != nil {
		return err
	}
	return ioutil.WriteFile(destFile, data, 0755)
}
Serialize store the structure as JSON
package gen
import (
	"encoding/json"
	"io/ioutil"
	"github.com/muka/go-bluetooth/gen/types"
)
type BluezAPI struct {
	Version string
	Api     []*types.ApiGroup
}