WebhookRegistrationDetails.fromJson constructor

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

Implementation

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