chatBodies property

List<Map<String, dynamic>> get chatBodies

Decoded bodies of the chat and chat-streaming requests.

Implementation

List<Map<String, dynamic>> get chatBodies => requests
    .where((r) => r.url.contains('/chat'))
    .where((r) => r.body != null)
    .map((r) => jsonDecode(r.body!) as Map<String, dynamic>)
    .toList();