func (c *Client) DecodeAccountTiny(resp *http.Response) (*AccountTiny, error) {
	var decoded AccountTiny
	err := c.Decoder.Decode(&decoded, resp.Body, resp.Header.Get("Content-Type"))
	return &decoded, err
}
DecodeAccountTiny decodes the AccountTiny instance encoded in resp body.
package client
import (
	"github.com/goadesign/goa"
	"net/http"
	"time"
	"unicode/utf8"
)
type Account struct {
	CreatedAt time.Time `form:"created_at" json:"created_at" xml:"created_at"`
	CreatedBy string `form:"created_by" json:"created_by" xml:"created_by"`
	Href string `form:"href" json:"href" xml:"href"`
	ID int `form:"id" json:"id" xml:"id"`
	Name string `form:"name" json:"name" xml:"name"`
}
func (mt *Account) Validate() (err error) {
	if mt.Href == "" {
		err = goa.MergeErrors(err, goa.MissingAttributeError(`response`, "href"))
	}
	if mt.Name == "" {
		err = goa.MergeErrors(err, goa.MissingAttributeError(`response`, "name"))
	}
	if mt.CreatedBy == "" {
		err = goa.MergeErrors(err, goa.MissingAttributeError(`response`, "created_by"))
	}
	if err2 := goa.ValidateFormat(goa.FormatEmail, mt.CreatedBy); err2 != nil {
		err = goa.MergeErrors(err, goa.InvalidFormatError(`response.created_by`, mt.CreatedBy, goa.FormatEmail, err2))
	}
	return
}
type AccountLink struct {
	Href string `form:"href" json:"href" xml:"href"`
	ID int `form:"id" json:"id" xml:"id"`
}
func (mt *AccountLink) Validate() (err error) {
	if mt.Href == "" {
		err = goa.MergeErrors(err, goa.MissingAttributeError(`response`, "href"))
	}
	return
}
type AccountTiny struct {
	Href string `form:"href" json:"href" xml:"href"`
	ID int `form:"id" json:"id" xml:"id"`
	Name string `form:"name" json:"name" xml:"name"`
}
func (mt *AccountTiny) Validate() (err error) {
	if mt.Href == "" {
		err = goa.MergeErrors(err, goa.MissingAttributeError(`response`, "href"))
	}
	if mt.Name == "" {
		err = goa.MergeErrors(err, goa.MissingAttributeError(`response`, "name"))
	}
	return
}
func (c *Client) DecodeAccount(resp *http.Response) (*Account, error) {
	var decoded Account
	err := c.Decoder.Decode(&decoded, resp.Body, resp.Header.Get("Content-Type"))
	return &decoded, err
}
func (c *Client) DecodeAccountLink(resp *http.Response) (*AccountLink, error) {
	var decoded AccountLink
	err := c.Decoder.Decode(&decoded, resp.Body, resp.Header.Get("Content-Type"))
	return &decoded, err
}