FailedWebhook.fromJson constructor

FailedWebhook.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory FailedWebhook.fromJson(Map<String, Object?> json) {
  return FailedWebhook(
    body: json[r'body'] as String?,
    failureTime: (json[r'failureTime'] as num?)?.toInt() ?? 0,
    id: json[r'id'] as String? ?? '',
    url: json[r'url'] as String? ?? '',
  );
}