func (j *TransferFromBlindOperation) MarshalJSONBuf(buf fflib.EncodingBuffer) error {
	if j == nil {
		buf.WriteString("null")
		return nil
	}
	var err error
	var obj []byte
	_ = obj
	_ = err
	buf.WriteString(`{ "amount":`)
	err = buf.Encode(&j.Amount)
	if err != nil {
		return err
	}
	buf.WriteString(`,"to":`)
	{
		obj, err = j.To.MarshalJSON()
		if err != nil {
			return err
		}
		buf.Write(obj)
	}
	buf.WriteString(`,"blinding_factor":`)
	{
		obj, err = j.BlindFactor.MarshalJSON()
		if err != nil {
			return err
		}
		buf.Write(obj)
	}
	buf.WriteString(`,"inputs":`)
	if j.BlindInputs != nil {
		buf.WriteString(`[`)
		for i, v := range j.BlindInputs {
			if i != 0 {
				buf.WriteString(`,`)
			}
			err = buf.Encode(&v)
			if err != nil {
				return err
			}
		}
		buf.WriteString(`]`)
	} else {
		buf.WriteString(`null`)
	}
	buf.WriteByte(',')
	if j.Fee != nil {
		if true {
			buf.WriteString(`"fee":`)
			err = buf.Encode(j.Fee)
			if err != nil {
				return err
			}
			buf.WriteByte(',')
		}
	}
	buf.Rewind(1)
	buf.WriteByte('}')
	return nil
}
MarshalJSONBuf marshal buff to json - template
package operations
import (
	"bytes"
	"encoding/json"
	"fmt"
	"github.com/denkhaus/bitshares/types"
	fflib "github.com/pquerna/ffjson/fflib/v1"
)
func (j *TransferFromBlindOperation) MarshalJSON() ([]byte, error) {
	var buf fflib.Buffer
	if j == nil {
		buf.WriteString("null")
		return buf.Bytes(), nil
	}
	err := j.MarshalJSONBuf(&buf)
	if err != nil {
		return nil, err
	}
	return buf.Bytes(), nil
}