github.com/TrueCloudLab/frostfs-api-go/v2@v2.0.0-20230228134343-196241c4e79a/accounting/json.go (about)

     1  package accounting
     2  
     3  import (
     4  	accounting "github.com/TrueCloudLab/frostfs-api-go/v2/accounting/grpc"
     5  	"github.com/TrueCloudLab/frostfs-api-go/v2/rpc/message"
     6  )
     7  
     8  func (d *Decimal) MarshalJSON() ([]byte, error) {
     9  	return message.MarshalJSON(d)
    10  }
    11  
    12  func (d *Decimal) UnmarshalJSON(data []byte) error {
    13  	return message.UnmarshalJSON(d, data, new(accounting.Decimal))
    14  }