getWebhookInfo method

Future<WebhookInfo> getWebhookInfo()

Gets current webhook status. Returns current webhook status.

Implementation

Future<WebhookInfo> getWebhookInfo() async {
  final response = await _makeRequest<Map<String, dynamic>>(
    APIMethod.getWebhookInfo.name,
  );

  return WebhookInfo.fromJson(response);
}