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