2020-11-13 14:20:24 +00:00
|
|
|
package storagegroup
|
|
|
|
|
|
|
|
import (
|
2021-11-16 17:30:55 +00:00
|
|
|
"github.com/nspcc-dev/neofs-api-go/v2/rpc/message"
|
2020-11-13 14:20:24 +00:00
|
|
|
storagegroup "github.com/nspcc-dev/neofs-api-go/v2/storagegroup/grpc"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (s *StorageGroup) MarshalJSON() ([]byte, error) {
|
2021-03-12 12:57:23 +00:00
|
|
|
return message.MarshalJSON(s)
|
2020-11-13 14:20:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageGroup) UnmarshalJSON(data []byte) error {
|
2021-03-12 12:57:23 +00:00
|
|
|
return message.UnmarshalJSON(s, data, new(storagegroup.StorageGroup))
|
2020-11-13 14:20:24 +00:00
|
|
|
}
|