if i have an api which return this kind of datas
`"penalty":false,"isActive":true,"isPaid":true,"isWaived":false` how can i make this [function accept a string](https://gist.github.com/elirehema/ae5d6a1557ba4b2cc056d0177b44f684#file-fragment-java-L4) to check for `isPenalty, isActive, isPaid` etc Here is my [api response.json](https://gist.github.com/elirehema/320b986a1ba672a6d056ada90070a004)