func (o *EarningsTotal) GetCanonicalDescription() string {
	if o == nil || o.CanonicalDescription.Get() == nil {
		var ret string
		return ret
	}
	return *o.CanonicalDescription.Get()
}
GetCanonicalDescription returns the CanonicalDescription field value if set, zero value otherwise (both if not set or set to explicit null).
package plaid
import (
	"encoding/json"
)
type EarningsTotal struct {
	CanonicalDescription NullableString `json:"canonical_description,omitempty"`
	CurrentAmount NullableFloat32 `json:"current_amount,omitempty"`
	CurrentPay *Pay `json:"current_pay,omitempty"`
	YtdPay *Pay `json:"ytd_pay,omitempty"`
	Hours NullableFloat32 `json:"hours,omitempty"`
	IsoCurrencyCode NullableString `json:"iso_currency_code,omitempty"`
	UnofficialCurrencyCode NullableString `json:"unofficial_currency_code,omitempty"`
	YtdAmount NullableFloat32 `json:"ytd_amount,omitempty"`
	AdditionalProperties map[string]interface{}
}
type _EarningsTotal EarningsTotal
func NewEarningsTotal() *EarningsTotal {
	this := EarningsTotal{}
	return &this
}
func NewEarningsTotalWithDefaults() *EarningsTotal {
	this := EarningsTotal{}
	return &this
}