getActiveCalls method
Every live call with its hold state; the consult call has isConsult == true.
Implementation
Future<List<OmiCallSummary>> getActiveCalls() async {
final action = OmiAction(actionName: OmiActionName.GET_ACTIVE_CALLS, data: {});
final result = await _controller.action(action);
if (result is! List) return [];
return result
.whereType<Map>()
.map((e) => OmiCallSummary.fromMap(e))
.toList();
}