FailedWebhooks.fromJson constructor

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

Implementation

factory FailedWebhooks.fromJson(Map<String, Object?> json) {
  return FailedWebhooks(
    maxResults: (json[r'maxResults'] as num?)?.toInt() ?? 0,
    next: json[r'next'] as String?,
    values: (json[r'values'] as List<Object?>?)
            ?.map((i) => FailedWebhook.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}