history method
Implementation
Future<DRPage<CallSummary>> history({String? cursor, int? limit}) async {
core.requireSignedIn();
final res = asMap(await core.requestIdempotent<Object?>(ApiRequest('GET', '/client/v1/calls', query: {'cursor': cursor, 'limit': limit}))) ?? const {};
final next = asString(res['next_cursor']);
return DRPage([for (final item in asList(res['items']) ?? const []) if (item is Map) CallSummary(freezeMap(item.cast<String, Object?>()))], next == null || next.isEmpty ? null : next);
}