getUnreadNotifications method

Future<UnreadNotifications> getUnreadNotifications(
  1. String account
)

Implementation

Future<UnreadNotifications> getUnreadNotifications(String account) async {
  final bodyJson = await _fetchPostData(
    method: 'bridge.unread_notifications',
    params: {'account': account},
  );

  return UnreadNotifications.fromJson(
    bodyJson['result'] as Map<String, dynamic>,
  );
}