// GENERATED CODE - DO NOT MODIFY BY HAND

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

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

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:auto_route/auto_route.dart' as _i21;
import 'package:flutter/material.dart' as _i22;
import 'package:smart_hotel_app/views/home/abnormal/abnormal_detail_view.dart'
    as _i1;
import 'package:smart_hotel_app/views/home/abnormal_list/index_view.dart'
    as _i2;
import 'package:smart_hotel_app/views/home/device/device_detail_view.dart'
    as _i4;
import 'package:smart_hotel_app/views/home/index/index_view.dart' as _i5;
import 'package:smart_hotel_app/views/home/inspection/inspection_detail_view.dart'
    as _i6;
import 'package:smart_hotel_app/views/home/inspection_device/inspection_device_view.dart'
    as _i7;
import 'package:smart_hotel_app/views/home/inspection_history/inspection_history_view.dart'
    as _i8;
import 'package:smart_hotel_app/views/home/inspection_topology/inspection_topology_view.dart'
    as _i9;
import 'package:smart_hotel_app/views/layout/default_view.dart' as _i3;
import 'package:smart_hotel_app/views/login/login_view.dart' as _i10;
import 'package:smart_hotel_app/views/profile/index/index_view.dart' as _i11;
import 'package:smart_hotel_app/views/report/device/device_list_view.dart'
    as _i12;
import 'package:smart_hotel_app/views/report/energy/energy_detail_view.dart'
    as _i13;
import 'package:smart_hotel_app/views/report/index/index_view.dart' as _i14;
import 'package:smart_hotel_app/views/report/room/room_detail_view.dart'
    as _i15;
import 'package:smart_hotel_app/views/report/rule/rule_management_view.dart'
    as _i16;
import 'package:smart_hotel_app/views/search/index_view.dart' as _i17;
import 'package:smart_hotel_app/views/service/device/device_detail_view.dart'
    as _i18;
import 'package:smart_hotel_app/views/service/index/index_view.dart' as _i19;
import 'package:smart_hotel_app/views/service/room/room_detail_view.dart'
    as _i20;

abstract class $AppRouter extends _i21.RootStackRouter {
  $AppRouter({super.navigatorKey});

  @override
  final Map<String, _i21.PageFactory> pagesMap = {
    AbnormalDetailRoute.name: (routeData) {
      final args = routeData.argsAs<AbnormalDetailRouteArgs>();
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: _i1.AbnormalDetailView(
          key: args.key,
          alertId: args.alertId,
        ),
      );
    },
    AbnormalListRoute.name: (routeData) {
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const _i2.AbnormalListView(),
      );
    },
    DefaultLayoutRoute.name: (routeData) {
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const _i3.DefaultLayoutView(),
      );
    },
    DeviceDetailRoute.name: (routeData) {
      final args = routeData.argsAs<DeviceDetailRouteArgs>();
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: _i4.DeviceDetailView(
          key: args.key,
          deviceId: args.deviceId,
        ),
      );
    },
    HomeRoute.name: (routeData) {
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const _i5.HomeView(),
      );
    },
    InspectionDetailRoute.name: (routeData) {
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const _i6.InspectionDetailView(),
      );
    },
    InspectionDeviceRoute.name: (routeData) {
      final pathParams = routeData.inheritedPathParams;
      final args = routeData.argsAs<InspectionDeviceRouteArgs>(
          orElse: () => InspectionDeviceRouteArgs(
              deviceId: pathParams.getString('deviceId')));
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: _i7.InspectionDeviceView(
          key: args.key,
          deviceId: args.deviceId,
        ),
      );
    },
    InspectionHistoryRoute.name: (routeData) {
      final pathParams = routeData.inheritedPathParams;
      final args = routeData.argsAs<InspectionHistoryRouteArgs>(
          orElse: () => InspectionHistoryRouteArgs(
              deviceId: pathParams.getString('deviceId')));
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: _i8.InspectionHistoryView(
          key: args.key,
          deviceId: args.deviceId,
        ),
      );
    },
    InspectionTopologyRoute.name: (routeData) {
      final args = routeData.argsAs<InspectionTopologyRouteArgs>();
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: _i9.InspectionTopologyView(
          key: args.key,
          deviceId: args.deviceId,
        ),
      );
    },
    LoginRoute.name: (routeData) {
      final args = routeData.argsAs<LoginRouteArgs>(
          orElse: () => const LoginRouteArgs());
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: _i10.LoginView(key: args.key),
      );
    },
    ProfileRoute.name: (routeData) {
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const _i11.ProfileView(),
      );
    },
    ReportDeviceListRoute.name: (routeData) {
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const _i12.ReportDeviceListView(),
      );
    },
    ReportEnergyDetailRoute.name: (routeData) {
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const _i13.ReportEnergyDetailView(),
      );
    },
    ReportIndexRoute.name: (routeData) {
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const _i14.ReportIndexView(),
      );
    },
    ReportRoomDetailRoute.name: (routeData) {
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const _i15.ReportRoomDetailView(),
      );
    },
    ReportRuleManagementRoute.name: (routeData) {
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const _i16.ReportRuleManagementView(),
      );
    },
    SearchRoute.name: (routeData) {
      final args = routeData.argsAs<SearchRouteArgs>(
          orElse: () => const SearchRouteArgs());
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: _i17.SearchView(
          key: args.key,
          searchKey: args.searchKey,
        ),
      );
    },
    ServiceDeviceDetailRoute.name: (routeData) {
      final args = routeData.argsAs<ServiceDeviceDetailRouteArgs>();
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: _i18.ServiceDeviceDetailView(
          key: args.key,
          deviceId: args.deviceId,
        ),
      );
    },
    ServiceIndexRoute.name: (routeData) {
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: const _i19.ServiceIndexView(),
      );
    },
    ServiceRoomDetailRoute.name: (routeData) {
      final args = routeData.argsAs<ServiceRoomDetailRouteArgs>();
      return _i21.AutoRoutePage<dynamic>(
        routeData: routeData,
        child: _i20.ServiceRoomDetailView(
          key: args.key,
          roomId: args.roomId,
          roomNumber: args.roomNumber,
        ),
      );
    },
  };
}

/// generated route for
/// [_i1.AbnormalDetailView]
class AbnormalDetailRoute extends _i21.PageRouteInfo<AbnormalDetailRouteArgs> {
  AbnormalDetailRoute({
    _i22.Key? key,
    required int alertId,
    List<_i21.PageRouteInfo>? children,
  }) : super(
          AbnormalDetailRoute.name,
          args: AbnormalDetailRouteArgs(
            key: key,
            alertId: alertId,
          ),
          initialChildren: children,
        );

  static const String name = 'AbnormalDetailRoute';

  static const _i21.PageInfo<AbnormalDetailRouteArgs> page =
      _i21.PageInfo<AbnormalDetailRouteArgs>(name);
}

class AbnormalDetailRouteArgs {
  const AbnormalDetailRouteArgs({
    this.key,
    required this.alertId,
  });

  final _i22.Key? key;

  final int alertId;

  @override
  String toString() {
    return 'AbnormalDetailRouteArgs{key: $key, alertId: $alertId}';
  }
}

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

  static const String name = 'AbnormalListRoute';

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

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

  static const String name = 'DefaultLayoutRoute';

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

/// generated route for
/// [_i4.DeviceDetailView]
class DeviceDetailRoute extends _i21.PageRouteInfo<DeviceDetailRouteArgs> {
  DeviceDetailRoute({
    _i22.Key? key,
    required int deviceId,
    List<_i21.PageRouteInfo>? children,
  }) : super(
          DeviceDetailRoute.name,
          args: DeviceDetailRouteArgs(
            key: key,
            deviceId: deviceId,
          ),
          initialChildren: children,
        );

  static const String name = 'DeviceDetailRoute';

  static const _i21.PageInfo<DeviceDetailRouteArgs> page =
      _i21.PageInfo<DeviceDetailRouteArgs>(name);
}

class DeviceDetailRouteArgs {
  const DeviceDetailRouteArgs({
    this.key,
    required this.deviceId,
  });

  final _i22.Key? key;

  final int deviceId;

  @override
  String toString() {
    return 'DeviceDetailRouteArgs{key: $key, deviceId: $deviceId}';
  }
}

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

  static const String name = 'HomeRoute';

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

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

  static const String name = 'InspectionDetailRoute';

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

/// generated route for
/// [_i7.InspectionDeviceView]
class InspectionDeviceRoute
    extends _i21.PageRouteInfo<InspectionDeviceRouteArgs> {
  InspectionDeviceRoute({
    _i22.Key? key,
    required String deviceId,
    List<_i21.PageRouteInfo>? children,
  }) : super(
          InspectionDeviceRoute.name,
          args: InspectionDeviceRouteArgs(
            key: key,
            deviceId: deviceId,
          ),
          rawPathParams: {'deviceId': deviceId},
          initialChildren: children,
        );

  static const String name = 'InspectionDeviceRoute';

  static const _i21.PageInfo<InspectionDeviceRouteArgs> page =
      _i21.PageInfo<InspectionDeviceRouteArgs>(name);
}

class InspectionDeviceRouteArgs {
  const InspectionDeviceRouteArgs({
    this.key,
    required this.deviceId,
  });

  final _i22.Key? key;

  final String deviceId;

  @override
  String toString() {
    return 'InspectionDeviceRouteArgs{key: $key, deviceId: $deviceId}';
  }
}

/// generated route for
/// [_i8.InspectionHistoryView]
class InspectionHistoryRoute
    extends _i21.PageRouteInfo<InspectionHistoryRouteArgs> {
  InspectionHistoryRoute({
    _i22.Key? key,
    required String deviceId,
    List<_i21.PageRouteInfo>? children,
  }) : super(
          InspectionHistoryRoute.name,
          args: InspectionHistoryRouteArgs(
            key: key,
            deviceId: deviceId,
          ),
          rawPathParams: {'deviceId': deviceId},
          initialChildren: children,
        );

  static const String name = 'InspectionHistoryRoute';

  static const _i21.PageInfo<InspectionHistoryRouteArgs> page =
      _i21.PageInfo<InspectionHistoryRouteArgs>(name);
}

class InspectionHistoryRouteArgs {
  const InspectionHistoryRouteArgs({
    this.key,
    required this.deviceId,
  });

  final _i22.Key? key;

  final String deviceId;

  @override
  String toString() {
    return 'InspectionHistoryRouteArgs{key: $key, deviceId: $deviceId}';
  }
}

/// generated route for
/// [_i9.InspectionTopologyView]
class InspectionTopologyRoute
    extends _i21.PageRouteInfo<InspectionTopologyRouteArgs> {
  InspectionTopologyRoute({
    _i22.Key? key,
    required String deviceId,
    List<_i21.PageRouteInfo>? children,
  }) : super(
          InspectionTopologyRoute.name,
          args: InspectionTopologyRouteArgs(
            key: key,
            deviceId: deviceId,
          ),
          initialChildren: children,
        );

  static const String name = 'InspectionTopologyRoute';

  static const _i21.PageInfo<InspectionTopologyRouteArgs> page =
      _i21.PageInfo<InspectionTopologyRouteArgs>(name);
}

class InspectionTopologyRouteArgs {
  const InspectionTopologyRouteArgs({
    this.key,
    required this.deviceId,
  });

  final _i22.Key? key;

  final String deviceId;

  @override
  String toString() {
    return 'InspectionTopologyRouteArgs{key: $key, deviceId: $deviceId}';
  }
}

/// generated route for
/// [_i10.LoginView]
class LoginRoute extends _i21.PageRouteInfo<LoginRouteArgs> {
  LoginRoute({
    _i22.Key? key,
    List<_i21.PageRouteInfo>? children,
  }) : super(
          LoginRoute.name,
          args: LoginRouteArgs(key: key),
          initialChildren: children,
        );

  static const String name = 'LoginRoute';

  static const _i21.PageInfo<LoginRouteArgs> page =
      _i21.PageInfo<LoginRouteArgs>(name);
}

class LoginRouteArgs {
  const LoginRouteArgs({this.key});

  final _i22.Key? key;

  @override
  String toString() {
    return 'LoginRouteArgs{key: $key}';
  }
}

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

  static const String name = 'ProfileRoute';

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

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

  static const String name = 'ReportDeviceListRoute';

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

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

  static const String name = 'ReportEnergyDetailRoute';

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

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

  static const String name = 'ReportIndexRoute';

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

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

  static const String name = 'ReportRoomDetailRoute';

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

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

  static const String name = 'ReportRuleManagementRoute';

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

/// generated route for
/// [_i17.SearchView]
class SearchRoute extends _i21.PageRouteInfo<SearchRouteArgs> {
  SearchRoute({
    _i22.Key? key,
    String? searchKey,
    List<_i21.PageRouteInfo>? children,
  }) : super(
          SearchRoute.name,
          args: SearchRouteArgs(
            key: key,
            searchKey: searchKey,
          ),
          initialChildren: children,
        );

  static const String name = 'SearchRoute';

  static const _i21.PageInfo<SearchRouteArgs> page =
      _i21.PageInfo<SearchRouteArgs>(name);
}

class SearchRouteArgs {
  const SearchRouteArgs({
    this.key,
    this.searchKey,
  });

  final _i22.Key? key;

  final String? searchKey;

  @override
  String toString() {
    return 'SearchRouteArgs{key: $key, searchKey: $searchKey}';
  }
}

/// generated route for
/// [_i18.ServiceDeviceDetailView]
class ServiceDeviceDetailRoute
    extends _i21.PageRouteInfo<ServiceDeviceDetailRouteArgs> {
  ServiceDeviceDetailRoute({
    _i22.Key? key,
    required int deviceId,
    List<_i21.PageRouteInfo>? children,
  }) : super(
          ServiceDeviceDetailRoute.name,
          args: ServiceDeviceDetailRouteArgs(
            key: key,
            deviceId: deviceId,
          ),
          initialChildren: children,
        );

  static const String name = 'ServiceDeviceDetailRoute';

  static const _i21.PageInfo<ServiceDeviceDetailRouteArgs> page =
      _i21.PageInfo<ServiceDeviceDetailRouteArgs>(name);
}

class ServiceDeviceDetailRouteArgs {
  const ServiceDeviceDetailRouteArgs({
    this.key,
    required this.deviceId,
  });

  final _i22.Key? key;

  final int deviceId;

  @override
  String toString() {
    return 'ServiceDeviceDetailRouteArgs{key: $key, deviceId: $deviceId}';
  }
}

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

  static const String name = 'ServiceIndexRoute';

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

/// generated route for
/// [_i20.ServiceRoomDetailView]
class ServiceRoomDetailRoute
    extends _i21.PageRouteInfo<ServiceRoomDetailRouteArgs> {
  ServiceRoomDetailRoute({
    _i22.Key? key,
    required int roomId,
    String? roomNumber,
    List<_i21.PageRouteInfo>? children,
  }) : super(
          ServiceRoomDetailRoute.name,
          args: ServiceRoomDetailRouteArgs(
            key: key,
            roomId: roomId,
            roomNumber: roomNumber,
          ),
          initialChildren: children,
        );

  static const String name = 'ServiceRoomDetailRoute';

  static const _i21.PageInfo<ServiceRoomDetailRouteArgs> page =
      _i21.PageInfo<ServiceRoomDetailRouteArgs>(name);
}

class ServiceRoomDetailRouteArgs {
  const ServiceRoomDetailRouteArgs({
    this.key,
    required this.roomId,
    this.roomNumber,
  });

  final _i22.Key? key;

  final int roomId;

  final String? roomNumber;

  @override
  String toString() {
    return 'ServiceRoomDetailRouteArgs{key: $key, roomId: $roomId, roomNumber: $roomNumber}';
  }
}
