ContainerForRegisteredWebhooks.fromJson constructor

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

Implementation

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