func (r *RecipientRequest) FromBytes(raw []byte) error {
	return json.Unmarshal(raw, r)
}
FromBytes unmarshalls the passed bytes into this struct
package state
import (
	"encoding/json"
	"time"
	"github.com/pkg/errors"
	"github.com/hyperledger-labs/fabric-smart-client/platform/fabric"
	view2 "github.com/hyperledger-labs/fabric-smart-client/platform/view"
	session2 "github.com/hyperledger-labs/fabric-smart-client/platform/view/services/session"
	"github.com/hyperledger-labs/fabric-smart-client/platform/view/view"
)
type RecipientData struct {
	Identity view.Identity
}
func (r *RecipientData) Bytes() ([]byte, error) {
	return json.Marshal(r)
}
func (r *RecipientData) FromBytes(raw []byte) error {
	return json.Unmarshal(raw, r)
}
type ExchangeRecipientRequest struct {
	Channel       string
	WalletID      []byte
	RecipientData *RecipientData
}
func (r *ExchangeRecipientRequest) Bytes() ([]byte, error) {
	return json.Marshal(r)
}
func (r *ExchangeRecipientRequest) FromBytes(raw []byte) error {
	return json.Unmarshal(raw, r)
}
type RecipientRequest struct {
	Network string
}
func (r *RecipientRequest) Bytes() ([]byte, error) {
	return json.Marshal(r)
}