func (s *Image) ConvertToJSON() (string, error) {
	data, err := json.Marshal(&s)
	if err != nil {
		return "", err
	}
	return string(data), nil
}
ConvertToJSON convert object to json
package sdk
import (
	"encoding/json"
)
type Image struct {
	ID           int    `json:"id"`
	Slug         string `json:"slug"`
	Name         string `json:"name"`
	Distribution string `json:"distribution"`
	Private      bool   `json:"private"`
	MinDiskSize  int    `json:"min_disk_size"`
}
func (s *Image) LoadFromJSON(data []byte) (bool, error) {
	err := json.Unmarshal(data, &s)
	if err != nil {
		return false, err
	}
	return true, nil
}