WebhookInfo.fromJson constructor
Creates a WebhookInfo object from json String.
Implementation
factory WebhookInfo.fromJson(Map<String, dynamic> json) {
return WebhookInfo(
url: json['url'] as String,
hasCustomCertificate: json['has_custom_certificate'] as bool,
pendingUpdateCount: json['pending_update_count'] as int,
ipAddress: json['ip_address'] as String?,
lastErrorDate: json['last_error_date'] as int?,
lastErrorMessage: json['last_error_message'] as String?,
lastErrorNetworkDate: json['last_error_network_date'] as int?,
maxConnections: json['max_connections'] as int?,
allowedUpdates: (json['allowed_updates'] as List<dynamic>?)
?.map((e) => e as String)
.toList(),
);
}