in message.go [99:112]
func (m *MailAttributes) MarshalJSON() ([]byte, error) {
type Alias MailAttributes
isHtml := 0
if m.IsHtml {
isHtml = 1
}
return json.Marshal(&struct {
IsHtml int `json:"IsHtml"`
*Alias
}{
IsHtml: isHtml,
Alias: (*Alias)(m),
})
}