RegisteredWebhook.fromJson constructor

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

Implementation

factory RegisteredWebhook.fromJson(Map<String, Object?> json) {
  return RegisteredWebhook(
    createdWebhookId: (json[r'createdWebhookId'] as num?)?.toInt(),
    errors: (json[r'errors'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
  );
}