part of 'payment_method_analytic_loader_bloc.dart';

@freezed
class PaymentMethodAnalyticLoaderState with _$PaymentMethodAnalyticLoaderState {
  factory PaymentMethodAnalyticLoaderState({
    required PaymentMethodAnalytic paymentMethodAnalytic,
    required Option<AnalyticFailure> failureOption,
    @Default(false) bool isFetching,
  }) = _PaymentMethodAnalyticLoaderState;

  factory PaymentMethodAnalyticLoaderState.initial() =>
      PaymentMethodAnalyticLoaderState(
        paymentMethodAnalytic: PaymentMethodAnalytic.empty(),
        failureOption: none(),
      );
}
