I am exploring playwright for automating api tests and I am unable to deserialise APIResponse of playwright to a POJO using java. I used to do this with rest assured using following code:
PetStoreModel petStoreModel = response.as(PetStoreModel.class);