mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
31 lines
626 B
Go
31 lines
626 B
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package shared
|
|
|
|
import (
|
|
"github.com/formancehq/formance-sdk-go/v2/pkg/utils"
|
|
"math/big"
|
|
)
|
|
|
|
type V2AssetHolder struct {
|
|
Assets map[string]*big.Int `json:"assets"`
|
|
}
|
|
|
|
func (v V2AssetHolder) MarshalJSON() ([]byte, error) {
|
|
return utils.MarshalJSON(v, "", false)
|
|
}
|
|
|
|
func (v *V2AssetHolder) UnmarshalJSON(data []byte) error {
|
|
if err := utils.UnmarshalJSON(data, &v, "", false, false); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (o *V2AssetHolder) GetAssets() map[string]*big.Int {
|
|
if o == nil {
|
|
return map[string]*big.Int{}
|
|
}
|
|
return o.Assets
|
|
}
|