RazorpayWebhookBaseRequestBody constructor

  1. @JsonSerializable(includeIfNull: false)
const RazorpayWebhookBaseRequestBody({
  1. required String url,
  2. required List<String> events,
  3. String? secret,
  4. String? active,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory RazorpayWebhookBaseRequestBody({
  required String url,
  required List<String> events, // List of event names, String? alert_email,
  String? secret,
  String?
      active, // 'true' or 'false'? Or bool? d.ts says string. Assuming bool for Dart.
}) = _RazorpayWebhookBaseRequestBody;