code: func parseWalletLockStateNtfnParams(params []json.RawMessage) (account string,
  	locked bool, err error) {
  
  	if len(params) != 2 {
  		return "", false, wrongNumParams(len(params))
  	}
  
  	// Unmarshal first parameter as a string.
  	err = json.Unmarshal(params[0], &account)
  	if err != nil {
  		return "", false, err
  	}
  
  	// Unmarshal second parameter as a boolean.
  	err = json.Unmarshal(params[1], &locked)
  	if err != nil {
  		return "", false, err
  	}
  
  	return account, locked, nil
  }
docs: // parseWalletLockStateNtfnParams parses out the account name and locked
  // state of an account from the parameters of a walletlockstate notification.