whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>(
  1. TResult? $default(
    1. Element sepaDebit,
    2. SepaBillingDetails? billingDetails
    )?, {
  2. TResult? id(
    1. String id
    )?,
  3. TResult? withIban(
    1. SepaDebitIbanData sepaDebit,
    2. SepaBillingDetails? billingDetails
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>(
  TResult? Function(
          @JsonKey(name: "sepa_debit") @ElementConverter() Element sepaDebit,
          @JsonKey(name: "billing_details")
          SepaBillingDetails? billingDetails)?
      $default, {
  TResult? Function(String id)? id,
  TResult? Function(
          @JsonKey(name: "sepa_debit") SepaDebitIbanData sepaDebit,
          @JsonKey(name: "billing_details")
          SepaBillingDetails? billingDetails)?
      withIban,
}) =>
    throw _privateConstructorUsedError;