How can I Validate Request Body Key and Value parameters that is in Form-data format

So we have an API that I am trying to write automation test to validate the Request Body that is in the form-data format with Key and Values… What I like to see if there is a way to capture the key and the value

  1. Test- make sure the key and value is present and not null
  2. Capture the key and value

the above script that i shared even if i put " " the test is passing my expectation was that if i dont put any value in the string than the test should have failed

I hope that helps