ContainerForWebhookIDs.fromJson constructor

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

Implementation

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