{ "data": [ { "id": "chat-1", "last_message": { "id": 1, "data": "Last message", "media_data": null, "author_id": 1, "updated_at": "2024-01-01T12:00:00Z", "read_by_to_user": false, "is_author_message_auth_user": true, "room_id": "chat-1" }, "users": { "from_chat_user": { "id": 1, "name": "User 1", "profile_photo_path": null, "profile_photo_url": "https://example.com/user1.jpg" }, "to_chat_user": { "id": 2, "name": "User 2", "profile_photo_path": null, "profile_photo_url": "https://example.com/user2.jpg" } }, "unread_messages_count": 5, "chosen_plan": null }, { "id": "chat-2", "last_message": null, "users": { "from_chat_user": { "id": 1, "name": "User 1", "profile_photo_path": null, "profile_photo_url": "https://example.com/user1.jpg" }, "to_chat_user": { "id": 3, "name": "User 3", "profile_photo_path": null, "profile_photo_url": "https://example.com/user3.jpg" } }, "unread_messages_count": 0, "chosen_plan": null } ], "number_of_unread_chat_rooms": 1, "meta": { "current_page": 1, "from": 1, "last_page": 1, "links": [], "per_page": 10, "to": 2, "total": 2 } }