2020-12-10 08:30:14 +00:00
|
|
|
package tombstone
|
|
|
|
|
|
|
|
import (
|
2021-03-12 12:57:23 +00:00
|
|
|
"github.com/nspcc-dev/neofs-api-go/rpc/message"
|
2020-12-10 08:30:14 +00:00
|
|
|
tombstone "github.com/nspcc-dev/neofs-api-go/v2/tombstone/grpc"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (s *Tombstone) MarshalJSON() ([]byte, error) {
|
2021-03-12 12:57:23 +00:00
|
|
|
return message.MarshalJSON(s)
|
2020-12-10 08:30:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *Tombstone) UnmarshalJSON(data []byte) error {
|
2021-03-12 12:57:23 +00:00
|
|
|
return message.UnmarshalJSON(s, data, new(tombstone.Tombstone))
|
2020-12-10 08:30:14 +00:00
|
|
|
}
|