maybeMap<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  1. TResult $default(
    1. _CardPaymentMethodDefault value
    )?, {
  2. TResult id(
    1. _CardPaymentMethodRef value
    )?,
  3. TResult token(
    1. _CardPaymentMethodDetailsToken value
    )?,
  4. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  TResult Function(_CardPaymentMethodDefault value)? $default, {
  TResult Function(_CardPaymentMethodRef value)? id,
  TResult Function(_CardPaymentMethodDetailsToken value)? token,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;