code: func NewTransactionFromJSON(data string) (*Transaction, error) {
  	tx := &Transaction{
  		tx: new(types.Transaction),
  	}
  	if err := json.Unmarshal([]byte(data), tx.tx); err != nil {
  		return nil, err
  	}
  	return tx, nil
  }
docs: // NewTransactionFromJSON parses a transaction from a JSON data dump.