Updated postToResponse to accept null and used is_array instead of is_object check. This ensures better type handling and improves the flexibility of the method.
Updated postToResponse to accept null and used is_array instead of is_object check. This ensures better type handling and improves the flexibility of the method.