maybeMap<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  1. TResult $default(
    1. _CreateTokenParamsLegacy value
    )?, {
  2. TResult card(
    1. _CreateTokenParamsCard value
    )?,
  3. TResult bankAccount(
    1. _CreateTokenParamsBankAccount value
    )?,
  4. TResult pii(
    1. _CreateTokenParamsPII value
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  TResult Function(_CreateTokenParamsLegacy value)? $default, {
  TResult Function(_CreateTokenParamsCard value)? card,
  TResult Function(_CreateTokenParamsBankAccount value)? bankAccount,
  TResult Function(_CreateTokenParamsPII value)? pii,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;