// GENERATED CODE - DO NOT MODIFY BY HAND

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

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

part of 'rewards_page_router.dart';

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

  @override
  final Map<String, PageFactory> pagesMap = {
    RewardsAddressPageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const RewardsAddressPage(),
      );
    },
    RewardsCodePageRoute.name: (routeData) {
      final pathParams = routeData.inheritedPathParams;
      final args = routeData.argsAs<RewardsCodePageRouteArgs>(
          orElse: () =>
              RewardsCodePageRouteArgs(code: pathParams.optInt('code')));
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: RewardsCodePage(
          key: args.key,
          code: args.code,
        ),
      );
    },
    RewardsConfirmPageRoute.name: (routeData) {
      final pathParams = routeData.inheritedPathParams;
      final args = routeData.argsAs<RewardsConfirmPageRouteArgs>(
          orElse: () =>
              RewardsConfirmPageRouteArgs(id: pathParams.optInt('id')));
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: RewardsConfirmPage(
          key: args.key,
          id: args.id,
        ),
      );
    },
    RewardsDetailPageRoute.name: (routeData) {
      final pathParams = routeData.inheritedPathParams;
      final args = routeData.argsAs<RewardsDetailPageRouteArgs>(
          orElse: () =>
              RewardsDetailPageRouteArgs(id: pathParams.optInt('id')));
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: RewardsDetailPage(
          key: args.key,
          id: args.id,
        ),
      );
    },
    RewardsHistoryEarnedPageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const RewardsHistoryEarnedPage(),
      );
    },
    RewardsHistoryPageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const RewardsHistoryPage(),
      );
    },
    RewardsHistorySpentPageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const RewardsHistorySpentPage(),
      );
    },
    RewardsSuccessfulPageRoute.name: (routeData) {
      final pathParams = routeData.inheritedPathParams;
      final args = routeData.argsAs<RewardsSuccessfulPageRouteArgs>(
          orElse: () => RewardsSuccessfulPageRouteArgs(
                amount: pathParams.optInt('amount'),
                title: pathParams.optString('title'),
                resources: pathParams.optString('resources'),
                redeemedDate: pathParams.optString('redeemedDate'),
                createdAt: pathParams.optString('createdAt'),
              ));
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: RewardsSuccessfulPage(
          key: args.key,
          amount: args.amount,
          title: args.title,
          resources: args.resources,
          redeemedDate: args.redeemedDate,
          createdAt: args.createdAt,
        ),
      );
    },
    RewardsHomePageRoute.name: (routeData) {
      final pathParams = routeData.inheritedPathParams;
      final args = routeData.argsAs<RewardsHomePageRouteArgs>(
          orElse: () =>
              RewardsHomePageRouteArgs(points: pathParams.optInt('points')));
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: RewardsHomePage(
          key: args.key,
          points: args.points,
        ),
      );
    },
    RewardsListPageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const RewardsListPage(),
      );
    },
    RewardsMyActivePageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const RewardsMyActivePage(),
      );
    },
    RewardsMyExpiredPageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const RewardsMyExpiredPage(),
      );
    },
    RewardsMyPageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const RewardsMyPage(),
      );
    },
    RewardsMyUsedPageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const RewardsMyUsedPage(),
      );
    },
    RewardsPageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const RewardsPage(),
      );
    },
    RewardsRedeemPageRoute.name: (routeData) {
      final pathParams = routeData.inheritedPathParams;
      final args = routeData.argsAs<RewardsRedeemPageRouteArgs>(
          orElse: () =>
              RewardsRedeemPageRouteArgs(id: pathParams.optInt('id')));
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: RewardsRedeemPage(
          key: args.key,
          id: args.id,
        ),
      );
    },
    RewardsSearchPageRoute.name: (routeData) {
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const RewardsSearchPage(),
      );
    },
    RewardsTransactionPageRoute.name: (routeData) {
      final pathParams = routeData.inheritedPathParams;
      final args = routeData.argsAs<RewardsTransactionPageRouteArgs>(
          orElse: () => RewardsTransactionPageRouteArgs(
                id: pathParams.optInt('id'),
                type: pathParams.optString('type'),
              ));
      return AutoRoutePage<dynamic>(
        routeData: routeData,
        child: RewardsTransactionPage(
          key: args.key,
          id: args.id,
          type: args.type,
        ),
      );
    },
  };
}

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

  static const String name = 'RewardsAddressPageRoute';

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

/// generated route for
/// [RewardsCodePage]
class RewardsCodePageRoute extends PageRouteInfo<RewardsCodePageRouteArgs> {
  RewardsCodePageRoute({
    Key? key,
    required int? code,
    List<PageRouteInfo>? children,
  }) : super(
          RewardsCodePageRoute.name,
          args: RewardsCodePageRouteArgs(
            key: key,
            code: code,
          ),
          rawPathParams: {'code': code},
          initialChildren: children,
        );

  static const String name = 'RewardsCodePageRoute';

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

class RewardsCodePageRouteArgs {
  const RewardsCodePageRouteArgs({
    this.key,
    required this.code,
  });

  final Key? key;

  final int? code;

  @override
  String toString() {
    return 'RewardsCodePageRouteArgs{key: $key, code: $code}';
  }
}

/// generated route for
/// [RewardsConfirmPage]
class RewardsConfirmPageRoute
    extends PageRouteInfo<RewardsConfirmPageRouteArgs> {
  RewardsConfirmPageRoute({
    Key? key,
    required int? id,
    List<PageRouteInfo>? children,
  }) : super(
          RewardsConfirmPageRoute.name,
          args: RewardsConfirmPageRouteArgs(
            key: key,
            id: id,
          ),
          rawPathParams: {'id': id},
          initialChildren: children,
        );

  static const String name = 'RewardsConfirmPageRoute';

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

class RewardsConfirmPageRouteArgs {
  const RewardsConfirmPageRouteArgs({
    this.key,
    required this.id,
  });

  final Key? key;

  final int? id;

  @override
  String toString() {
    return 'RewardsConfirmPageRouteArgs{key: $key, id: $id}';
  }
}

/// generated route for
/// [RewardsDetailPage]
class RewardsDetailPageRoute extends PageRouteInfo<RewardsDetailPageRouteArgs> {
  RewardsDetailPageRoute({
    Key? key,
    required int? id,
    List<PageRouteInfo>? children,
  }) : super(
          RewardsDetailPageRoute.name,
          args: RewardsDetailPageRouteArgs(
            key: key,
            id: id,
          ),
          rawPathParams: {'id': id},
          initialChildren: children,
        );

  static const String name = 'RewardsDetailPageRoute';

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

class RewardsDetailPageRouteArgs {
  const RewardsDetailPageRouteArgs({
    this.key,
    required this.id,
  });

  final Key? key;

  final int? id;

  @override
  String toString() {
    return 'RewardsDetailPageRouteArgs{key: $key, id: $id}';
  }
}

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

  static const String name = 'RewardsHistoryEarnedPageRoute';

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

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

  static const String name = 'RewardsHistoryPageRoute';

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

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

  static const String name = 'RewardsHistorySpentPageRoute';

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

/// generated route for
/// [RewardsHomePage]
class RewardsHomePageRoute extends PageRouteInfo<RewardsHomePageRouteArgs> {
  RewardsHomePageRoute({
    Key? key,
    required int? points,
    List<PageRouteInfo>? children,
  }) : super(
          RewardsHomePageRoute.name,
          args: RewardsHomePageRouteArgs(
            key: key,
            points: points,
          ),
          rawPathParams: {'points': points},
          initialChildren: children,
        );

  static const String name = 'RewardsHomePageRoute';

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

class RewardsHomePageRouteArgs {
  const RewardsHomePageRouteArgs({
    this.key,
    required this.points,
  });

  final Key? key;

  final int? points;

  @override
  String toString() {
    return 'RewardsHomePageRouteArgs{key: $key, points: $points}';
  }
}

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

  static const String name = 'RewardsListPageRoute';

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

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

  static const String name = 'RewardsMyActivePageRoute';

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

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

  static const String name = 'RewardsMyExpiredPageRoute';

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

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

  static const String name = 'RewardsMyPageRoute';

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

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

  static const String name = 'RewardsMyUsedPageRoute';

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

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

  static const String name = 'RewardsPageRoute';

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

/// generated route for
/// [RewardsRedeemPage]
class RewardsRedeemPageRoute extends PageRouteInfo<RewardsRedeemPageRouteArgs> {
  RewardsRedeemPageRoute({
    Key? key,
    required int? id,
    List<PageRouteInfo>? children,
  }) : super(
          RewardsRedeemPageRoute.name,
          args: RewardsRedeemPageRouteArgs(
            key: key,
            id: id,
          ),
          rawPathParams: {'id': id},
          initialChildren: children,
        );

  static const String name = 'RewardsRedeemPageRoute';

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

class RewardsRedeemPageRouteArgs {
  const RewardsRedeemPageRouteArgs({
    this.key,
    required this.id,
  });

  final Key? key;

  final int? id;

  @override
  String toString() {
    return 'RewardsRedeemPageRouteArgs{key: $key, id: $id}';
  }
}

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

  static const String name = 'RewardsSearchPageRoute';

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

/// generated route for
/// [RewardsSuccessfulPage]
class RewardsSuccessfulPageRoute
    extends PageRouteInfo<RewardsSuccessfulPageRouteArgs> {
  RewardsSuccessfulPageRoute({
    Key? key,
    required int? amount,
    required String? title,
    required String? resources,
    required String? redeemedDate,
    required String? createdAt,
    List<PageRouteInfo>? children,
  }) : super(
          RewardsSuccessfulPageRoute.name,
          args: RewardsSuccessfulPageRouteArgs(
            key: key,
            amount: amount,
            title: title,
            resources: resources,
            redeemedDate: redeemedDate,
            createdAt: createdAt,
          ),
          rawPathParams: {
            'amount': amount,
            'title': title,
            'resources': resources,
            'redeemedDate': redeemedDate,
            'createdAt': createdAt,
          },
          initialChildren: children,
        );

  static const String name = 'RewardsSuccessfulPageRoute';

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

class RewardsSuccessfulPageRouteArgs {
  const RewardsSuccessfulPageRouteArgs({
    this.key,
    required this.amount,
    required this.title,
    required this.resources,
    required this.redeemedDate,
    required this.createdAt,
  });

  final Key? key;

  final int? amount;

  final String? title;
  final String? resources;
  final String? redeemedDate;
  final String? createdAt;

  @override
  String toString() {
    return 'RewardsSuccessfulPageRouteArgs{key: $key, amount: $amount, title: $title, resources: $resources, redeemedDate: $redeemedDate, createdAt: $createdAt}';
  }
}

/// generated route for
/// [RewardsTransactionPage]
class RewardsTransactionPageRoute
    extends PageRouteInfo<RewardsTransactionPageRouteArgs> {
  RewardsTransactionPageRoute({
    Key? key,
    required int? id,
    required String? type,
    List<PageRouteInfo>? children,
  }) : super(
          RewardsTransactionPageRoute.name,
          args: RewardsTransactionPageRouteArgs(
            key: key,
            id: id,
            type: type,
          ),
          rawPathParams: {
            'id': id,
            'type': type,
          },
          initialChildren: children,
        );

  static const String name = 'RewardsTransactionPageRoute';

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

class RewardsTransactionPageRouteArgs {
  const RewardsTransactionPageRouteArgs({
    this.key,
    required this.id,
    required this.type,
  });

  final Key? key;

  final int? id;

  final String? type;

  @override
  String toString() {
    return 'RewardsTransactionPageRouteArgs{key: $key, id: $id, type: $type}';
  }
}
