// GENERATED CODE - DO NOT MODIFY BY HAND

// **************************************************************************
// AutoRouterGenerator
// **************************************************************************

// ignore_for_file: type=lint
// coverage:ignore-file

part of 'payment_page_router.dart';

abstract class _$PaymentPageRouter extends RootStackRouter {
  // ignore: unused_element
  _$PaymentPageRouter({super.navigatorKey});

  @override
  final Map<String, PageFactory> pagesMap = {
    AddCardPageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const AddCardPage(),
      );
    },
    ChooseCardPageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const ChooseCardPage(),
      );
    },
    HistoryListPageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: HistoryListScreen(),
      );
    },
    InfoPageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: InfoScreen(),
      );
    },
    ManagePageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: ManageScreen(),
      );
    },
    OfflinePaymentPageRoute.name: (routeData) {
      final pathParams = routeData.inheritedPathParams;
      final args = routeData.argsAs<OfflinePaymentPageRouteArgs>(
          orElse: () => OfflinePaymentPageRouteArgs(
              popTargetRouter: pathParams.optString('popTargetRouter')));
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: OfflinePaymentPage(
          key: args.key,
          popTargetRouter: args.popTargetRouter,
        ),
      );
    },
    PaymentConfirmPageRoute.name: (routeData) {
      final pathParams = routeData.inheritedPathParams;
      final args = routeData.argsAs<PaymentConfirmPageRouteArgs>(
          orElse: () => PaymentConfirmPageRouteArgs(
                title: pathParams.optString('title'),
                orderId: pathParams.optString('orderId'),
                amount: pathParams.optString('amount'),
                deposit: pathParams.optString('deposit'),
              ));
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: PaymentConfirmPage(
          key: args.key,
          title: args.title,
          orderId: args.orderId,
          amount: args.amount,
          deposit: args.deposit,
        ),
      );
    },
    PaymentInfoPageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const PaymentInfoPage(),
      );
    },
    PaymentListPageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: PaymentListScreen(),
      );
    },
    PaymentPageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const PaymentPage(),
      );
    },
    PaymentSuccessPageRoute.name: (routeData) {
      final pathParams = routeData.inheritedPathParams;
      final args = routeData.argsAs<PaymentSuccessPageRouteArgs>(
          orElse: () => PaymentSuccessPageRouteArgs(
              orderId: pathParams.optString('orderId')));
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: PaymentSuccessPage(
          key: args.key,
          orderId: args.orderId,
        ),
      );
    },
  };
}

/// generated route for
/// [AddCardPage]
class AddCardPageRoute extends PageRouteInfo<void> {
  const AddCardPageRoute({List<PageRouteInfo>? children})
      : super(
          AddCardPageRoute.name,
          initialChildren: children,
        );

  static const String name = 'AddCardPageRoute';

  static const PageInfo<void> page = PageInfo<void>(name);
}

/// generated route for
/// [ChooseCardPage]
class ChooseCardPageRoute extends PageRouteInfo<void> {
  const ChooseCardPageRoute({List<PageRouteInfo>? children})
      : super(
          ChooseCardPageRoute.name,
          initialChildren: children,
        );

  static const String name = 'ChooseCardPageRoute';

  static const PageInfo<void> page = PageInfo<void>(name);
}

/// generated route for
/// [HistoryListScreen]
class HistoryListPageRoute extends PageRouteInfo<void> {
  const HistoryListPageRoute({List<PageRouteInfo>? children})
      : super(
          HistoryListPageRoute.name,
          initialChildren: children,
        );

  static const String name = 'HistoryListPageRoute';

  static const PageInfo<void> page = PageInfo<void>(name);
}

/// generated route for
/// [InfoScreen]
class InfoPageRoute extends PageRouteInfo<void> {
  const InfoPageRoute({List<PageRouteInfo>? children})
      : super(
          InfoPageRoute.name,
          initialChildren: children,
        );

  static const String name = 'InfoPageRoute';

  static const PageInfo<void> page = PageInfo<void>(name);
}

/// generated route for
/// [ManageScreen]
class ManagePageRoute extends PageRouteInfo<void> {
  const ManagePageRoute({List<PageRouteInfo>? children})
      : super(
          ManagePageRoute.name,
          initialChildren: children,
        );

  static const String name = 'ManagePageRoute';

  static const PageInfo<void> page = PageInfo<void>(name);
}

/// generated route for
/// [OfflinePaymentPage]
class OfflinePaymentPageRoute
    extends PageRouteInfo<OfflinePaymentPageRouteArgs> {
  OfflinePaymentPageRoute({
    Key? key,
    required String? popTargetRouter,
    List<PageRouteInfo>? children,
  }) : super(
          OfflinePaymentPageRoute.name,
          args: OfflinePaymentPageRouteArgs(
            key: key,
            popTargetRouter: popTargetRouter,
          ),
          rawPathParams: {'popTargetRouter': popTargetRouter},
          initialChildren: children,
        );

  static const String name = 'OfflinePaymentPageRoute';

  static const PageInfo<OfflinePaymentPageRouteArgs> page =
      PageInfo<OfflinePaymentPageRouteArgs>(name);
}

class OfflinePaymentPageRouteArgs {
  const OfflinePaymentPageRouteArgs({
    this.key,
    required this.popTargetRouter,
  });

  final Key? key;

  final String? popTargetRouter;

  @override
  String toString() {
    return 'OfflinePaymentPageRouteArgs{key: $key, popTargetRouter: $popTargetRouter}';
  }
}

/// generated route for
/// [PaymentConfirmPage]
class PaymentConfirmPageRoute
    extends PageRouteInfo<PaymentConfirmPageRouteArgs> {
  PaymentConfirmPageRoute({
    Key? key,
    required String? title,
    required String? orderId,
    required String? amount,
    String? deposit,
    List<PageRouteInfo>? children,
  }) : super(
          PaymentConfirmPageRoute.name,
          args: PaymentConfirmPageRouteArgs(
            key: key,
            title: title,
            orderId: orderId,
            amount: amount,
            deposit: deposit,
          ),
          rawPathParams: {
            'title': title,
            'orderId': orderId,
            'amount': amount,
            'deposit': deposit,
          },
          initialChildren: children,
        );

  static const String name = 'PaymentConfirmPageRoute';

  static const PageInfo<PaymentConfirmPageRouteArgs> page =
      PageInfo<PaymentConfirmPageRouteArgs>(name);
}

class PaymentConfirmPageRouteArgs {
  const PaymentConfirmPageRouteArgs({
    this.key,
    required this.title,
    required this.orderId,
    required this.amount,
    this.deposit,
  });

  final Key? key;

  final String? title;

  final String? orderId;

  final String? amount;

  final String? deposit;

  @override
  String toString() {
    return 'PaymentConfirmPageRouteArgs{key: $key, title: $title, orderId: $orderId, amount: $amount, deposit: $deposit}';
  }
}

/// generated route for
/// [PaymentInfoPage]
class PaymentInfoPageRoute extends PageRouteInfo<void> {
  const PaymentInfoPageRoute({List<PageRouteInfo>? children})
      : super(
          PaymentInfoPageRoute.name,
          initialChildren: children,
        );

  static const String name = 'PaymentInfoPageRoute';

  static const PageInfo<void> page = PageInfo<void>(name);
}

/// generated route for
/// [PaymentListScreen]
class PaymentListPageRoute extends PageRouteInfo<void> {
  const PaymentListPageRoute({List<PageRouteInfo>? children})
      : super(
          PaymentListPageRoute.name,
          initialChildren: children,
        );

  static const String name = 'PaymentListPageRoute';

  static const PageInfo<void> page = PageInfo<void>(name);
}

/// generated route for
/// [PaymentPage]
class PaymentPageRoute extends PageRouteInfo<void> {
  const PaymentPageRoute({List<PageRouteInfo>? children})
      : super(
          PaymentPageRoute.name,
          initialChildren: children,
        );

  static const String name = 'PaymentPageRoute';

  static const PageInfo<void> page = PageInfo<void>(name);
}

/// generated route for
/// [PaymentSuccessPage]
class PaymentSuccessPageRoute
    extends PageRouteInfo<PaymentSuccessPageRouteArgs> {
  PaymentSuccessPageRoute({
    Key? key,
    required String? orderId,
    List<PageRouteInfo>? children,
  }) : super(
          PaymentSuccessPageRoute.name,
          args: PaymentSuccessPageRouteArgs(
            key: key,
            orderId: orderId,
          ),
          rawPathParams: {'orderId': orderId},
          initialChildren: children,
        );

  static const String name = 'PaymentSuccessPageRoute';

  static const PageInfo<PaymentSuccessPageRouteArgs> page =
      PageInfo<PaymentSuccessPageRouteArgs>(name);
}

class PaymentSuccessPageRouteArgs {
  const PaymentSuccessPageRouteArgs({
    this.key,
    required this.orderId,
  });

  final Key? key;

  final String? orderId;

  @override
  String toString() {
    return 'PaymentSuccessPageRouteArgs{key: $key, orderId: $orderId}';
  }
}
