app_config.freezed.dart 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692
  1. // coverage:ignore-file
  2. // GENERATED CODE - DO NOT MODIFY BY HAND
  3. // ignore_for_file: type=lint
  4. // ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
  5. part of 'app_config.dart';
  6. // **************************************************************************
  7. // FreezedGenerator
  8. // **************************************************************************
  9. T _$identity<T>(T value) => value;
  10. final _privateConstructorUsedError = UnsupportedError(
  11. 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models',
  12. );
  13. AppConfig _$AppConfigFromJson(Map<String, dynamic> json) {
  14. return _AppConfig.fromJson(json);
  15. }
  16. /// @nodoc
  17. mixin _$AppConfig {
  18. List<String>? get apiIps => throw _privateConstructorUsedError;
  19. List<String>? get apiUrls => throw _privateConstructorUsedError;
  20. List<String>? get routerApiUrls => throw _privateConstructorUsedError;
  21. List<String>? get appStatUrls => throw _privateConstructorUsedError;
  22. List<String>? get assetUrls => throw _privateConstructorUsedError;
  23. List<String>? get logFileUploadUrls => throw _privateConstructorUsedError;
  24. List<String>? get realityApiUrls => throw _privateConstructorUsedError;
  25. List<String>? get realityAppStatUrls => throw _privateConstructorUsedError;
  26. List<String>? get realityLogFileUploadUrls =>
  27. throw _privateConstructorUsedError;
  28. bool? get autoPing => throw _privateConstructorUsedError;
  29. int? get autoPingInterval => throw _privateConstructorUsedError;
  30. List<String>? get backupApiUrls => throw _privateConstructorUsedError;
  31. int? get cacheDataEffectiveDays => throw _privateConstructorUsedError;
  32. List<Contacts>? get contacts => throw _privateConstructorUsedError;
  33. List<Contacts>? get follows => throw _privateConstructorUsedError;
  34. List<String>? get providers => throw _privateConstructorUsedError;
  35. List<int>? get signalThresholds => throw _privateConstructorUsedError;
  36. List<int>? get packetLossThresholds => throw _privateConstructorUsedError;
  37. SkipGeo? get skipGeo => throw _privateConstructorUsedError;
  38. List<SpeedTestTargetList>? get speedTestTargetList =>
  39. throw _privateConstructorUsedError;
  40. String? get websiteUrl => throw _privateConstructorUsedError;
  41. bool? get visitorDisabled => throw _privateConstructorUsedError; // 游客模式
  42. PrivacyTerms? get privacyAgreement => throw _privateConstructorUsedError;
  43. String? get email => throw _privateConstructorUsedError;
  44. List<String>? get blackPkgs => throw _privateConstructorUsedError;
  45. List<String>? get whitePkgs => throw _privateConstructorUsedError;
  46. int? get accelerationSampleCount => throw _privateConstructorUsedError;
  47. int? get minAccelerationSampleCount => throw _privateConstructorUsedError;
  48. int? get connectionWarningThreshold => throw _privateConstructorUsedError;
  49. String? get connectiveTestUrl => throw _privateConstructorUsedError;
  50. List<String>? get disabledLogModules => throw _privateConstructorUsedError;
  51. String? get realTimeDbPath => throw _privateConstructorUsedError;
  52. int? get boostTimeInterval => throw _privateConstructorUsedError;
  53. int? get pingDisplayMode => throw _privateConstructorUsedError;
  54. int? get peekTimeInterval => throw _privateConstructorUsedError;
  55. bool? get enableAd => throw _privateConstructorUsedError;
  56. int? get adTimeoutDuration => throw _privateConstructorUsedError;
  57. int? get reportActiveInterval => throw _privateConstructorUsedError;
  58. int? get serverTime => throw _privateConstructorUsedError;
  59. SmartGeo? get smartGeo => throw _privateConstructorUsedError;
  60. /// Serializes this AppConfig to a JSON map.
  61. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  62. /// Create a copy of AppConfig
  63. /// with the given fields replaced by the non-null parameter values.
  64. @JsonKey(includeFromJson: false, includeToJson: false)
  65. $AppConfigCopyWith<AppConfig> get copyWith =>
  66. throw _privateConstructorUsedError;
  67. }
  68. /// @nodoc
  69. abstract class $AppConfigCopyWith<$Res> {
  70. factory $AppConfigCopyWith(AppConfig value, $Res Function(AppConfig) then) =
  71. _$AppConfigCopyWithImpl<$Res, AppConfig>;
  72. @useResult
  73. $Res call({
  74. List<String>? apiIps,
  75. List<String>? apiUrls,
  76. List<String>? routerApiUrls,
  77. List<String>? appStatUrls,
  78. List<String>? assetUrls,
  79. List<String>? logFileUploadUrls,
  80. List<String>? realityApiUrls,
  81. List<String>? realityAppStatUrls,
  82. List<String>? realityLogFileUploadUrls,
  83. bool? autoPing,
  84. int? autoPingInterval,
  85. List<String>? backupApiUrls,
  86. int? cacheDataEffectiveDays,
  87. List<Contacts>? contacts,
  88. List<Contacts>? follows,
  89. List<String>? providers,
  90. List<int>? signalThresholds,
  91. List<int>? packetLossThresholds,
  92. SkipGeo? skipGeo,
  93. List<SpeedTestTargetList>? speedTestTargetList,
  94. String? websiteUrl,
  95. bool? visitorDisabled,
  96. PrivacyTerms? privacyAgreement,
  97. String? email,
  98. List<String>? blackPkgs,
  99. List<String>? whitePkgs,
  100. int? accelerationSampleCount,
  101. int? minAccelerationSampleCount,
  102. int? connectionWarningThreshold,
  103. String? connectiveTestUrl,
  104. List<String>? disabledLogModules,
  105. String? realTimeDbPath,
  106. int? boostTimeInterval,
  107. int? pingDisplayMode,
  108. int? peekTimeInterval,
  109. bool? enableAd,
  110. int? adTimeoutDuration,
  111. int? reportActiveInterval,
  112. int? serverTime,
  113. SmartGeo? smartGeo,
  114. });
  115. $SmartGeoCopyWith<$Res>? get smartGeo;
  116. }
  117. /// @nodoc
  118. class _$AppConfigCopyWithImpl<$Res, $Val extends AppConfig>
  119. implements $AppConfigCopyWith<$Res> {
  120. _$AppConfigCopyWithImpl(this._value, this._then);
  121. // ignore: unused_field
  122. final $Val _value;
  123. // ignore: unused_field
  124. final $Res Function($Val) _then;
  125. /// Create a copy of AppConfig
  126. /// with the given fields replaced by the non-null parameter values.
  127. @pragma('vm:prefer-inline')
  128. @override
  129. $Res call({
  130. Object? apiIps = freezed,
  131. Object? apiUrls = freezed,
  132. Object? routerApiUrls = freezed,
  133. Object? appStatUrls = freezed,
  134. Object? assetUrls = freezed,
  135. Object? logFileUploadUrls = freezed,
  136. Object? realityApiUrls = freezed,
  137. Object? realityAppStatUrls = freezed,
  138. Object? realityLogFileUploadUrls = freezed,
  139. Object? autoPing = freezed,
  140. Object? autoPingInterval = freezed,
  141. Object? backupApiUrls = freezed,
  142. Object? cacheDataEffectiveDays = freezed,
  143. Object? contacts = freezed,
  144. Object? follows = freezed,
  145. Object? providers = freezed,
  146. Object? signalThresholds = freezed,
  147. Object? packetLossThresholds = freezed,
  148. Object? skipGeo = freezed,
  149. Object? speedTestTargetList = freezed,
  150. Object? websiteUrl = freezed,
  151. Object? visitorDisabled = freezed,
  152. Object? privacyAgreement = freezed,
  153. Object? email = freezed,
  154. Object? blackPkgs = freezed,
  155. Object? whitePkgs = freezed,
  156. Object? accelerationSampleCount = freezed,
  157. Object? minAccelerationSampleCount = freezed,
  158. Object? connectionWarningThreshold = freezed,
  159. Object? connectiveTestUrl = freezed,
  160. Object? disabledLogModules = freezed,
  161. Object? realTimeDbPath = freezed,
  162. Object? boostTimeInterval = freezed,
  163. Object? pingDisplayMode = freezed,
  164. Object? peekTimeInterval = freezed,
  165. Object? enableAd = freezed,
  166. Object? adTimeoutDuration = freezed,
  167. Object? reportActiveInterval = freezed,
  168. Object? serverTime = freezed,
  169. Object? smartGeo = freezed,
  170. }) {
  171. return _then(
  172. _value.copyWith(
  173. apiIps: freezed == apiIps
  174. ? _value.apiIps
  175. : apiIps // ignore: cast_nullable_to_non_nullable
  176. as List<String>?,
  177. apiUrls: freezed == apiUrls
  178. ? _value.apiUrls
  179. : apiUrls // ignore: cast_nullable_to_non_nullable
  180. as List<String>?,
  181. routerApiUrls: freezed == routerApiUrls
  182. ? _value.routerApiUrls
  183. : routerApiUrls // ignore: cast_nullable_to_non_nullable
  184. as List<String>?,
  185. appStatUrls: freezed == appStatUrls
  186. ? _value.appStatUrls
  187. : appStatUrls // ignore: cast_nullable_to_non_nullable
  188. as List<String>?,
  189. assetUrls: freezed == assetUrls
  190. ? _value.assetUrls
  191. : assetUrls // ignore: cast_nullable_to_non_nullable
  192. as List<String>?,
  193. logFileUploadUrls: freezed == logFileUploadUrls
  194. ? _value.logFileUploadUrls
  195. : logFileUploadUrls // ignore: cast_nullable_to_non_nullable
  196. as List<String>?,
  197. realityApiUrls: freezed == realityApiUrls
  198. ? _value.realityApiUrls
  199. : realityApiUrls // ignore: cast_nullable_to_non_nullable
  200. as List<String>?,
  201. realityAppStatUrls: freezed == realityAppStatUrls
  202. ? _value.realityAppStatUrls
  203. : realityAppStatUrls // ignore: cast_nullable_to_non_nullable
  204. as List<String>?,
  205. realityLogFileUploadUrls: freezed == realityLogFileUploadUrls
  206. ? _value.realityLogFileUploadUrls
  207. : realityLogFileUploadUrls // ignore: cast_nullable_to_non_nullable
  208. as List<String>?,
  209. autoPing: freezed == autoPing
  210. ? _value.autoPing
  211. : autoPing // ignore: cast_nullable_to_non_nullable
  212. as bool?,
  213. autoPingInterval: freezed == autoPingInterval
  214. ? _value.autoPingInterval
  215. : autoPingInterval // ignore: cast_nullable_to_non_nullable
  216. as int?,
  217. backupApiUrls: freezed == backupApiUrls
  218. ? _value.backupApiUrls
  219. : backupApiUrls // ignore: cast_nullable_to_non_nullable
  220. as List<String>?,
  221. cacheDataEffectiveDays: freezed == cacheDataEffectiveDays
  222. ? _value.cacheDataEffectiveDays
  223. : cacheDataEffectiveDays // ignore: cast_nullable_to_non_nullable
  224. as int?,
  225. contacts: freezed == contacts
  226. ? _value.contacts
  227. : contacts // ignore: cast_nullable_to_non_nullable
  228. as List<Contacts>?,
  229. follows: freezed == follows
  230. ? _value.follows
  231. : follows // ignore: cast_nullable_to_non_nullable
  232. as List<Contacts>?,
  233. providers: freezed == providers
  234. ? _value.providers
  235. : providers // ignore: cast_nullable_to_non_nullable
  236. as List<String>?,
  237. signalThresholds: freezed == signalThresholds
  238. ? _value.signalThresholds
  239. : signalThresholds // ignore: cast_nullable_to_non_nullable
  240. as List<int>?,
  241. packetLossThresholds: freezed == packetLossThresholds
  242. ? _value.packetLossThresholds
  243. : packetLossThresholds // ignore: cast_nullable_to_non_nullable
  244. as List<int>?,
  245. skipGeo: freezed == skipGeo
  246. ? _value.skipGeo
  247. : skipGeo // ignore: cast_nullable_to_non_nullable
  248. as SkipGeo?,
  249. speedTestTargetList: freezed == speedTestTargetList
  250. ? _value.speedTestTargetList
  251. : speedTestTargetList // ignore: cast_nullable_to_non_nullable
  252. as List<SpeedTestTargetList>?,
  253. websiteUrl: freezed == websiteUrl
  254. ? _value.websiteUrl
  255. : websiteUrl // ignore: cast_nullable_to_non_nullable
  256. as String?,
  257. visitorDisabled: freezed == visitorDisabled
  258. ? _value.visitorDisabled
  259. : visitorDisabled // ignore: cast_nullable_to_non_nullable
  260. as bool?,
  261. privacyAgreement: freezed == privacyAgreement
  262. ? _value.privacyAgreement
  263. : privacyAgreement // ignore: cast_nullable_to_non_nullable
  264. as PrivacyTerms?,
  265. email: freezed == email
  266. ? _value.email
  267. : email // ignore: cast_nullable_to_non_nullable
  268. as String?,
  269. blackPkgs: freezed == blackPkgs
  270. ? _value.blackPkgs
  271. : blackPkgs // ignore: cast_nullable_to_non_nullable
  272. as List<String>?,
  273. whitePkgs: freezed == whitePkgs
  274. ? _value.whitePkgs
  275. : whitePkgs // ignore: cast_nullable_to_non_nullable
  276. as List<String>?,
  277. accelerationSampleCount: freezed == accelerationSampleCount
  278. ? _value.accelerationSampleCount
  279. : accelerationSampleCount // ignore: cast_nullable_to_non_nullable
  280. as int?,
  281. minAccelerationSampleCount: freezed == minAccelerationSampleCount
  282. ? _value.minAccelerationSampleCount
  283. : minAccelerationSampleCount // ignore: cast_nullable_to_non_nullable
  284. as int?,
  285. connectionWarningThreshold: freezed == connectionWarningThreshold
  286. ? _value.connectionWarningThreshold
  287. : connectionWarningThreshold // ignore: cast_nullable_to_non_nullable
  288. as int?,
  289. connectiveTestUrl: freezed == connectiveTestUrl
  290. ? _value.connectiveTestUrl
  291. : connectiveTestUrl // ignore: cast_nullable_to_non_nullable
  292. as String?,
  293. disabledLogModules: freezed == disabledLogModules
  294. ? _value.disabledLogModules
  295. : disabledLogModules // ignore: cast_nullable_to_non_nullable
  296. as List<String>?,
  297. realTimeDbPath: freezed == realTimeDbPath
  298. ? _value.realTimeDbPath
  299. : realTimeDbPath // ignore: cast_nullable_to_non_nullable
  300. as String?,
  301. boostTimeInterval: freezed == boostTimeInterval
  302. ? _value.boostTimeInterval
  303. : boostTimeInterval // ignore: cast_nullable_to_non_nullable
  304. as int?,
  305. pingDisplayMode: freezed == pingDisplayMode
  306. ? _value.pingDisplayMode
  307. : pingDisplayMode // ignore: cast_nullable_to_non_nullable
  308. as int?,
  309. peekTimeInterval: freezed == peekTimeInterval
  310. ? _value.peekTimeInterval
  311. : peekTimeInterval // ignore: cast_nullable_to_non_nullable
  312. as int?,
  313. enableAd: freezed == enableAd
  314. ? _value.enableAd
  315. : enableAd // ignore: cast_nullable_to_non_nullable
  316. as bool?,
  317. adTimeoutDuration: freezed == adTimeoutDuration
  318. ? _value.adTimeoutDuration
  319. : adTimeoutDuration // ignore: cast_nullable_to_non_nullable
  320. as int?,
  321. reportActiveInterval: freezed == reportActiveInterval
  322. ? _value.reportActiveInterval
  323. : reportActiveInterval // ignore: cast_nullable_to_non_nullable
  324. as int?,
  325. serverTime: freezed == serverTime
  326. ? _value.serverTime
  327. : serverTime // ignore: cast_nullable_to_non_nullable
  328. as int?,
  329. smartGeo: freezed == smartGeo
  330. ? _value.smartGeo
  331. : smartGeo // ignore: cast_nullable_to_non_nullable
  332. as SmartGeo?,
  333. )
  334. as $Val,
  335. );
  336. }
  337. /// Create a copy of AppConfig
  338. /// with the given fields replaced by the non-null parameter values.
  339. @override
  340. @pragma('vm:prefer-inline')
  341. $SmartGeoCopyWith<$Res>? get smartGeo {
  342. if (_value.smartGeo == null) {
  343. return null;
  344. }
  345. return $SmartGeoCopyWith<$Res>(_value.smartGeo!, (value) {
  346. return _then(_value.copyWith(smartGeo: value) as $Val);
  347. });
  348. }
  349. }
  350. /// @nodoc
  351. abstract class _$$AppConfigImplCopyWith<$Res>
  352. implements $AppConfigCopyWith<$Res> {
  353. factory _$$AppConfigImplCopyWith(
  354. _$AppConfigImpl value,
  355. $Res Function(_$AppConfigImpl) then,
  356. ) = __$$AppConfigImplCopyWithImpl<$Res>;
  357. @override
  358. @useResult
  359. $Res call({
  360. List<String>? apiIps,
  361. List<String>? apiUrls,
  362. List<String>? routerApiUrls,
  363. List<String>? appStatUrls,
  364. List<String>? assetUrls,
  365. List<String>? logFileUploadUrls,
  366. List<String>? realityApiUrls,
  367. List<String>? realityAppStatUrls,
  368. List<String>? realityLogFileUploadUrls,
  369. bool? autoPing,
  370. int? autoPingInterval,
  371. List<String>? backupApiUrls,
  372. int? cacheDataEffectiveDays,
  373. List<Contacts>? contacts,
  374. List<Contacts>? follows,
  375. List<String>? providers,
  376. List<int>? signalThresholds,
  377. List<int>? packetLossThresholds,
  378. SkipGeo? skipGeo,
  379. List<SpeedTestTargetList>? speedTestTargetList,
  380. String? websiteUrl,
  381. bool? visitorDisabled,
  382. PrivacyTerms? privacyAgreement,
  383. String? email,
  384. List<String>? blackPkgs,
  385. List<String>? whitePkgs,
  386. int? accelerationSampleCount,
  387. int? minAccelerationSampleCount,
  388. int? connectionWarningThreshold,
  389. String? connectiveTestUrl,
  390. List<String>? disabledLogModules,
  391. String? realTimeDbPath,
  392. int? boostTimeInterval,
  393. int? pingDisplayMode,
  394. int? peekTimeInterval,
  395. bool? enableAd,
  396. int? adTimeoutDuration,
  397. int? reportActiveInterval,
  398. int? serverTime,
  399. SmartGeo? smartGeo,
  400. });
  401. @override
  402. $SmartGeoCopyWith<$Res>? get smartGeo;
  403. }
  404. /// @nodoc
  405. class __$$AppConfigImplCopyWithImpl<$Res>
  406. extends _$AppConfigCopyWithImpl<$Res, _$AppConfigImpl>
  407. implements _$$AppConfigImplCopyWith<$Res> {
  408. __$$AppConfigImplCopyWithImpl(
  409. _$AppConfigImpl _value,
  410. $Res Function(_$AppConfigImpl) _then,
  411. ) : super(_value, _then);
  412. /// Create a copy of AppConfig
  413. /// with the given fields replaced by the non-null parameter values.
  414. @pragma('vm:prefer-inline')
  415. @override
  416. $Res call({
  417. Object? apiIps = freezed,
  418. Object? apiUrls = freezed,
  419. Object? routerApiUrls = freezed,
  420. Object? appStatUrls = freezed,
  421. Object? assetUrls = freezed,
  422. Object? logFileUploadUrls = freezed,
  423. Object? realityApiUrls = freezed,
  424. Object? realityAppStatUrls = freezed,
  425. Object? realityLogFileUploadUrls = freezed,
  426. Object? autoPing = freezed,
  427. Object? autoPingInterval = freezed,
  428. Object? backupApiUrls = freezed,
  429. Object? cacheDataEffectiveDays = freezed,
  430. Object? contacts = freezed,
  431. Object? follows = freezed,
  432. Object? providers = freezed,
  433. Object? signalThresholds = freezed,
  434. Object? packetLossThresholds = freezed,
  435. Object? skipGeo = freezed,
  436. Object? speedTestTargetList = freezed,
  437. Object? websiteUrl = freezed,
  438. Object? visitorDisabled = freezed,
  439. Object? privacyAgreement = freezed,
  440. Object? email = freezed,
  441. Object? blackPkgs = freezed,
  442. Object? whitePkgs = freezed,
  443. Object? accelerationSampleCount = freezed,
  444. Object? minAccelerationSampleCount = freezed,
  445. Object? connectionWarningThreshold = freezed,
  446. Object? connectiveTestUrl = freezed,
  447. Object? disabledLogModules = freezed,
  448. Object? realTimeDbPath = freezed,
  449. Object? boostTimeInterval = freezed,
  450. Object? pingDisplayMode = freezed,
  451. Object? peekTimeInterval = freezed,
  452. Object? enableAd = freezed,
  453. Object? adTimeoutDuration = freezed,
  454. Object? reportActiveInterval = freezed,
  455. Object? serverTime = freezed,
  456. Object? smartGeo = freezed,
  457. }) {
  458. return _then(
  459. _$AppConfigImpl(
  460. apiIps: freezed == apiIps
  461. ? _value._apiIps
  462. : apiIps // ignore: cast_nullable_to_non_nullable
  463. as List<String>?,
  464. apiUrls: freezed == apiUrls
  465. ? _value._apiUrls
  466. : apiUrls // ignore: cast_nullable_to_non_nullable
  467. as List<String>?,
  468. routerApiUrls: freezed == routerApiUrls
  469. ? _value._routerApiUrls
  470. : routerApiUrls // ignore: cast_nullable_to_non_nullable
  471. as List<String>?,
  472. appStatUrls: freezed == appStatUrls
  473. ? _value._appStatUrls
  474. : appStatUrls // ignore: cast_nullable_to_non_nullable
  475. as List<String>?,
  476. assetUrls: freezed == assetUrls
  477. ? _value._assetUrls
  478. : assetUrls // ignore: cast_nullable_to_non_nullable
  479. as List<String>?,
  480. logFileUploadUrls: freezed == logFileUploadUrls
  481. ? _value._logFileUploadUrls
  482. : logFileUploadUrls // ignore: cast_nullable_to_non_nullable
  483. as List<String>?,
  484. realityApiUrls: freezed == realityApiUrls
  485. ? _value._realityApiUrls
  486. : realityApiUrls // ignore: cast_nullable_to_non_nullable
  487. as List<String>?,
  488. realityAppStatUrls: freezed == realityAppStatUrls
  489. ? _value._realityAppStatUrls
  490. : realityAppStatUrls // ignore: cast_nullable_to_non_nullable
  491. as List<String>?,
  492. realityLogFileUploadUrls: freezed == realityLogFileUploadUrls
  493. ? _value._realityLogFileUploadUrls
  494. : realityLogFileUploadUrls // ignore: cast_nullable_to_non_nullable
  495. as List<String>?,
  496. autoPing: freezed == autoPing
  497. ? _value.autoPing
  498. : autoPing // ignore: cast_nullable_to_non_nullable
  499. as bool?,
  500. autoPingInterval: freezed == autoPingInterval
  501. ? _value.autoPingInterval
  502. : autoPingInterval // ignore: cast_nullable_to_non_nullable
  503. as int?,
  504. backupApiUrls: freezed == backupApiUrls
  505. ? _value._backupApiUrls
  506. : backupApiUrls // ignore: cast_nullable_to_non_nullable
  507. as List<String>?,
  508. cacheDataEffectiveDays: freezed == cacheDataEffectiveDays
  509. ? _value.cacheDataEffectiveDays
  510. : cacheDataEffectiveDays // ignore: cast_nullable_to_non_nullable
  511. as int?,
  512. contacts: freezed == contacts
  513. ? _value._contacts
  514. : contacts // ignore: cast_nullable_to_non_nullable
  515. as List<Contacts>?,
  516. follows: freezed == follows
  517. ? _value._follows
  518. : follows // ignore: cast_nullable_to_non_nullable
  519. as List<Contacts>?,
  520. providers: freezed == providers
  521. ? _value._providers
  522. : providers // ignore: cast_nullable_to_non_nullable
  523. as List<String>?,
  524. signalThresholds: freezed == signalThresholds
  525. ? _value._signalThresholds
  526. : signalThresholds // ignore: cast_nullable_to_non_nullable
  527. as List<int>?,
  528. packetLossThresholds: freezed == packetLossThresholds
  529. ? _value._packetLossThresholds
  530. : packetLossThresholds // ignore: cast_nullable_to_non_nullable
  531. as List<int>?,
  532. skipGeo: freezed == skipGeo
  533. ? _value.skipGeo
  534. : skipGeo // ignore: cast_nullable_to_non_nullable
  535. as SkipGeo?,
  536. speedTestTargetList: freezed == speedTestTargetList
  537. ? _value._speedTestTargetList
  538. : speedTestTargetList // ignore: cast_nullable_to_non_nullable
  539. as List<SpeedTestTargetList>?,
  540. websiteUrl: freezed == websiteUrl
  541. ? _value.websiteUrl
  542. : websiteUrl // ignore: cast_nullable_to_non_nullable
  543. as String?,
  544. visitorDisabled: freezed == visitorDisabled
  545. ? _value.visitorDisabled
  546. : visitorDisabled // ignore: cast_nullable_to_non_nullable
  547. as bool?,
  548. privacyAgreement: freezed == privacyAgreement
  549. ? _value.privacyAgreement
  550. : privacyAgreement // ignore: cast_nullable_to_non_nullable
  551. as PrivacyTerms?,
  552. email: freezed == email
  553. ? _value.email
  554. : email // ignore: cast_nullable_to_non_nullable
  555. as String?,
  556. blackPkgs: freezed == blackPkgs
  557. ? _value._blackPkgs
  558. : blackPkgs // ignore: cast_nullable_to_non_nullable
  559. as List<String>?,
  560. whitePkgs: freezed == whitePkgs
  561. ? _value._whitePkgs
  562. : whitePkgs // ignore: cast_nullable_to_non_nullable
  563. as List<String>?,
  564. accelerationSampleCount: freezed == accelerationSampleCount
  565. ? _value.accelerationSampleCount
  566. : accelerationSampleCount // ignore: cast_nullable_to_non_nullable
  567. as int?,
  568. minAccelerationSampleCount: freezed == minAccelerationSampleCount
  569. ? _value.minAccelerationSampleCount
  570. : minAccelerationSampleCount // ignore: cast_nullable_to_non_nullable
  571. as int?,
  572. connectionWarningThreshold: freezed == connectionWarningThreshold
  573. ? _value.connectionWarningThreshold
  574. : connectionWarningThreshold // ignore: cast_nullable_to_non_nullable
  575. as int?,
  576. connectiveTestUrl: freezed == connectiveTestUrl
  577. ? _value.connectiveTestUrl
  578. : connectiveTestUrl // ignore: cast_nullable_to_non_nullable
  579. as String?,
  580. disabledLogModules: freezed == disabledLogModules
  581. ? _value._disabledLogModules
  582. : disabledLogModules // ignore: cast_nullable_to_non_nullable
  583. as List<String>?,
  584. realTimeDbPath: freezed == realTimeDbPath
  585. ? _value.realTimeDbPath
  586. : realTimeDbPath // ignore: cast_nullable_to_non_nullable
  587. as String?,
  588. boostTimeInterval: freezed == boostTimeInterval
  589. ? _value.boostTimeInterval
  590. : boostTimeInterval // ignore: cast_nullable_to_non_nullable
  591. as int?,
  592. pingDisplayMode: freezed == pingDisplayMode
  593. ? _value.pingDisplayMode
  594. : pingDisplayMode // ignore: cast_nullable_to_non_nullable
  595. as int?,
  596. peekTimeInterval: freezed == peekTimeInterval
  597. ? _value.peekTimeInterval
  598. : peekTimeInterval // ignore: cast_nullable_to_non_nullable
  599. as int?,
  600. enableAd: freezed == enableAd
  601. ? _value.enableAd
  602. : enableAd // ignore: cast_nullable_to_non_nullable
  603. as bool?,
  604. adTimeoutDuration: freezed == adTimeoutDuration
  605. ? _value.adTimeoutDuration
  606. : adTimeoutDuration // ignore: cast_nullable_to_non_nullable
  607. as int?,
  608. reportActiveInterval: freezed == reportActiveInterval
  609. ? _value.reportActiveInterval
  610. : reportActiveInterval // ignore: cast_nullable_to_non_nullable
  611. as int?,
  612. serverTime: freezed == serverTime
  613. ? _value.serverTime
  614. : serverTime // ignore: cast_nullable_to_non_nullable
  615. as int?,
  616. smartGeo: freezed == smartGeo
  617. ? _value.smartGeo
  618. : smartGeo // ignore: cast_nullable_to_non_nullable
  619. as SmartGeo?,
  620. ),
  621. );
  622. }
  623. }
  624. /// @nodoc
  625. @JsonSerializable()
  626. class _$AppConfigImpl with DiagnosticableTreeMixin implements _AppConfig {
  627. const _$AppConfigImpl({
  628. final List<String>? apiIps,
  629. final List<String>? apiUrls,
  630. final List<String>? routerApiUrls,
  631. final List<String>? appStatUrls,
  632. final List<String>? assetUrls,
  633. final List<String>? logFileUploadUrls,
  634. final List<String>? realityApiUrls,
  635. final List<String>? realityAppStatUrls,
  636. final List<String>? realityLogFileUploadUrls,
  637. this.autoPing,
  638. this.autoPingInterval,
  639. final List<String>? backupApiUrls,
  640. this.cacheDataEffectiveDays,
  641. final List<Contacts>? contacts,
  642. final List<Contacts>? follows,
  643. final List<String>? providers,
  644. final List<int>? signalThresholds,
  645. final List<int>? packetLossThresholds,
  646. this.skipGeo,
  647. final List<SpeedTestTargetList>? speedTestTargetList,
  648. this.websiteUrl,
  649. this.visitorDisabled,
  650. this.privacyAgreement,
  651. this.email,
  652. final List<String>? blackPkgs,
  653. final List<String>? whitePkgs,
  654. this.accelerationSampleCount,
  655. this.minAccelerationSampleCount,
  656. this.connectionWarningThreshold,
  657. this.connectiveTestUrl,
  658. final List<String>? disabledLogModules,
  659. this.realTimeDbPath,
  660. this.boostTimeInterval,
  661. this.pingDisplayMode,
  662. this.peekTimeInterval,
  663. this.enableAd,
  664. this.adTimeoutDuration,
  665. this.reportActiveInterval,
  666. this.serverTime,
  667. this.smartGeo,
  668. }) : _apiIps = apiIps,
  669. _apiUrls = apiUrls,
  670. _routerApiUrls = routerApiUrls,
  671. _appStatUrls = appStatUrls,
  672. _assetUrls = assetUrls,
  673. _logFileUploadUrls = logFileUploadUrls,
  674. _realityApiUrls = realityApiUrls,
  675. _realityAppStatUrls = realityAppStatUrls,
  676. _realityLogFileUploadUrls = realityLogFileUploadUrls,
  677. _backupApiUrls = backupApiUrls,
  678. _contacts = contacts,
  679. _follows = follows,
  680. _providers = providers,
  681. _signalThresholds = signalThresholds,
  682. _packetLossThresholds = packetLossThresholds,
  683. _speedTestTargetList = speedTestTargetList,
  684. _blackPkgs = blackPkgs,
  685. _whitePkgs = whitePkgs,
  686. _disabledLogModules = disabledLogModules;
  687. factory _$AppConfigImpl.fromJson(Map<String, dynamic> json) =>
  688. _$$AppConfigImplFromJson(json);
  689. final List<String>? _apiIps;
  690. @override
  691. List<String>? get apiIps {
  692. final value = _apiIps;
  693. if (value == null) return null;
  694. if (_apiIps is EqualUnmodifiableListView) return _apiIps;
  695. // ignore: implicit_dynamic_type
  696. return EqualUnmodifiableListView(value);
  697. }
  698. final List<String>? _apiUrls;
  699. @override
  700. List<String>? get apiUrls {
  701. final value = _apiUrls;
  702. if (value == null) return null;
  703. if (_apiUrls is EqualUnmodifiableListView) return _apiUrls;
  704. // ignore: implicit_dynamic_type
  705. return EqualUnmodifiableListView(value);
  706. }
  707. final List<String>? _routerApiUrls;
  708. @override
  709. List<String>? get routerApiUrls {
  710. final value = _routerApiUrls;
  711. if (value == null) return null;
  712. if (_routerApiUrls is EqualUnmodifiableListView) return _routerApiUrls;
  713. // ignore: implicit_dynamic_type
  714. return EqualUnmodifiableListView(value);
  715. }
  716. final List<String>? _appStatUrls;
  717. @override
  718. List<String>? get appStatUrls {
  719. final value = _appStatUrls;
  720. if (value == null) return null;
  721. if (_appStatUrls is EqualUnmodifiableListView) return _appStatUrls;
  722. // ignore: implicit_dynamic_type
  723. return EqualUnmodifiableListView(value);
  724. }
  725. final List<String>? _assetUrls;
  726. @override
  727. List<String>? get assetUrls {
  728. final value = _assetUrls;
  729. if (value == null) return null;
  730. if (_assetUrls is EqualUnmodifiableListView) return _assetUrls;
  731. // ignore: implicit_dynamic_type
  732. return EqualUnmodifiableListView(value);
  733. }
  734. final List<String>? _logFileUploadUrls;
  735. @override
  736. List<String>? get logFileUploadUrls {
  737. final value = _logFileUploadUrls;
  738. if (value == null) return null;
  739. if (_logFileUploadUrls is EqualUnmodifiableListView)
  740. return _logFileUploadUrls;
  741. // ignore: implicit_dynamic_type
  742. return EqualUnmodifiableListView(value);
  743. }
  744. final List<String>? _realityApiUrls;
  745. @override
  746. List<String>? get realityApiUrls {
  747. final value = _realityApiUrls;
  748. if (value == null) return null;
  749. if (_realityApiUrls is EqualUnmodifiableListView) return _realityApiUrls;
  750. // ignore: implicit_dynamic_type
  751. return EqualUnmodifiableListView(value);
  752. }
  753. final List<String>? _realityAppStatUrls;
  754. @override
  755. List<String>? get realityAppStatUrls {
  756. final value = _realityAppStatUrls;
  757. if (value == null) return null;
  758. if (_realityAppStatUrls is EqualUnmodifiableListView)
  759. return _realityAppStatUrls;
  760. // ignore: implicit_dynamic_type
  761. return EqualUnmodifiableListView(value);
  762. }
  763. final List<String>? _realityLogFileUploadUrls;
  764. @override
  765. List<String>? get realityLogFileUploadUrls {
  766. final value = _realityLogFileUploadUrls;
  767. if (value == null) return null;
  768. if (_realityLogFileUploadUrls is EqualUnmodifiableListView)
  769. return _realityLogFileUploadUrls;
  770. // ignore: implicit_dynamic_type
  771. return EqualUnmodifiableListView(value);
  772. }
  773. @override
  774. final bool? autoPing;
  775. @override
  776. final int? autoPingInterval;
  777. final List<String>? _backupApiUrls;
  778. @override
  779. List<String>? get backupApiUrls {
  780. final value = _backupApiUrls;
  781. if (value == null) return null;
  782. if (_backupApiUrls is EqualUnmodifiableListView) return _backupApiUrls;
  783. // ignore: implicit_dynamic_type
  784. return EqualUnmodifiableListView(value);
  785. }
  786. @override
  787. final int? cacheDataEffectiveDays;
  788. final List<Contacts>? _contacts;
  789. @override
  790. List<Contacts>? get contacts {
  791. final value = _contacts;
  792. if (value == null) return null;
  793. if (_contacts is EqualUnmodifiableListView) return _contacts;
  794. // ignore: implicit_dynamic_type
  795. return EqualUnmodifiableListView(value);
  796. }
  797. final List<Contacts>? _follows;
  798. @override
  799. List<Contacts>? get follows {
  800. final value = _follows;
  801. if (value == null) return null;
  802. if (_follows is EqualUnmodifiableListView) return _follows;
  803. // ignore: implicit_dynamic_type
  804. return EqualUnmodifiableListView(value);
  805. }
  806. final List<String>? _providers;
  807. @override
  808. List<String>? get providers {
  809. final value = _providers;
  810. if (value == null) return null;
  811. if (_providers is EqualUnmodifiableListView) return _providers;
  812. // ignore: implicit_dynamic_type
  813. return EqualUnmodifiableListView(value);
  814. }
  815. final List<int>? _signalThresholds;
  816. @override
  817. List<int>? get signalThresholds {
  818. final value = _signalThresholds;
  819. if (value == null) return null;
  820. if (_signalThresholds is EqualUnmodifiableListView)
  821. return _signalThresholds;
  822. // ignore: implicit_dynamic_type
  823. return EqualUnmodifiableListView(value);
  824. }
  825. final List<int>? _packetLossThresholds;
  826. @override
  827. List<int>? get packetLossThresholds {
  828. final value = _packetLossThresholds;
  829. if (value == null) return null;
  830. if (_packetLossThresholds is EqualUnmodifiableListView)
  831. return _packetLossThresholds;
  832. // ignore: implicit_dynamic_type
  833. return EqualUnmodifiableListView(value);
  834. }
  835. @override
  836. final SkipGeo? skipGeo;
  837. final List<SpeedTestTargetList>? _speedTestTargetList;
  838. @override
  839. List<SpeedTestTargetList>? get speedTestTargetList {
  840. final value = _speedTestTargetList;
  841. if (value == null) return null;
  842. if (_speedTestTargetList is EqualUnmodifiableListView)
  843. return _speedTestTargetList;
  844. // ignore: implicit_dynamic_type
  845. return EqualUnmodifiableListView(value);
  846. }
  847. @override
  848. final String? websiteUrl;
  849. @override
  850. final bool? visitorDisabled;
  851. // 游客模式
  852. @override
  853. final PrivacyTerms? privacyAgreement;
  854. @override
  855. final String? email;
  856. final List<String>? _blackPkgs;
  857. @override
  858. List<String>? get blackPkgs {
  859. final value = _blackPkgs;
  860. if (value == null) return null;
  861. if (_blackPkgs is EqualUnmodifiableListView) return _blackPkgs;
  862. // ignore: implicit_dynamic_type
  863. return EqualUnmodifiableListView(value);
  864. }
  865. final List<String>? _whitePkgs;
  866. @override
  867. List<String>? get whitePkgs {
  868. final value = _whitePkgs;
  869. if (value == null) return null;
  870. if (_whitePkgs is EqualUnmodifiableListView) return _whitePkgs;
  871. // ignore: implicit_dynamic_type
  872. return EqualUnmodifiableListView(value);
  873. }
  874. @override
  875. final int? accelerationSampleCount;
  876. @override
  877. final int? minAccelerationSampleCount;
  878. @override
  879. final int? connectionWarningThreshold;
  880. @override
  881. final String? connectiveTestUrl;
  882. final List<String>? _disabledLogModules;
  883. @override
  884. List<String>? get disabledLogModules {
  885. final value = _disabledLogModules;
  886. if (value == null) return null;
  887. if (_disabledLogModules is EqualUnmodifiableListView)
  888. return _disabledLogModules;
  889. // ignore: implicit_dynamic_type
  890. return EqualUnmodifiableListView(value);
  891. }
  892. @override
  893. final String? realTimeDbPath;
  894. @override
  895. final int? boostTimeInterval;
  896. @override
  897. final int? pingDisplayMode;
  898. @override
  899. final int? peekTimeInterval;
  900. @override
  901. final bool? enableAd;
  902. @override
  903. final int? adTimeoutDuration;
  904. @override
  905. final int? reportActiveInterval;
  906. @override
  907. final int? serverTime;
  908. @override
  909. final SmartGeo? smartGeo;
  910. @override
  911. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  912. return 'AppConfig(apiIps: $apiIps, apiUrls: $apiUrls, routerApiUrls: $routerApiUrls, appStatUrls: $appStatUrls, assetUrls: $assetUrls, logFileUploadUrls: $logFileUploadUrls, realityApiUrls: $realityApiUrls, realityAppStatUrls: $realityAppStatUrls, realityLogFileUploadUrls: $realityLogFileUploadUrls, autoPing: $autoPing, autoPingInterval: $autoPingInterval, backupApiUrls: $backupApiUrls, cacheDataEffectiveDays: $cacheDataEffectiveDays, contacts: $contacts, follows: $follows, providers: $providers, signalThresholds: $signalThresholds, packetLossThresholds: $packetLossThresholds, skipGeo: $skipGeo, speedTestTargetList: $speedTestTargetList, websiteUrl: $websiteUrl, visitorDisabled: $visitorDisabled, privacyAgreement: $privacyAgreement, email: $email, blackPkgs: $blackPkgs, whitePkgs: $whitePkgs, accelerationSampleCount: $accelerationSampleCount, minAccelerationSampleCount: $minAccelerationSampleCount, connectionWarningThreshold: $connectionWarningThreshold, connectiveTestUrl: $connectiveTestUrl, disabledLogModules: $disabledLogModules, realTimeDbPath: $realTimeDbPath, boostTimeInterval: $boostTimeInterval, pingDisplayMode: $pingDisplayMode, peekTimeInterval: $peekTimeInterval, enableAd: $enableAd, adTimeoutDuration: $adTimeoutDuration, reportActiveInterval: $reportActiveInterval, serverTime: $serverTime, smartGeo: $smartGeo)';
  913. }
  914. @override
  915. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  916. super.debugFillProperties(properties);
  917. properties
  918. ..add(DiagnosticsProperty('type', 'AppConfig'))
  919. ..add(DiagnosticsProperty('apiIps', apiIps))
  920. ..add(DiagnosticsProperty('apiUrls', apiUrls))
  921. ..add(DiagnosticsProperty('routerApiUrls', routerApiUrls))
  922. ..add(DiagnosticsProperty('appStatUrls', appStatUrls))
  923. ..add(DiagnosticsProperty('assetUrls', assetUrls))
  924. ..add(DiagnosticsProperty('logFileUploadUrls', logFileUploadUrls))
  925. ..add(DiagnosticsProperty('realityApiUrls', realityApiUrls))
  926. ..add(DiagnosticsProperty('realityAppStatUrls', realityAppStatUrls))
  927. ..add(
  928. DiagnosticsProperty(
  929. 'realityLogFileUploadUrls',
  930. realityLogFileUploadUrls,
  931. ),
  932. )
  933. ..add(DiagnosticsProperty('autoPing', autoPing))
  934. ..add(DiagnosticsProperty('autoPingInterval', autoPingInterval))
  935. ..add(DiagnosticsProperty('backupApiUrls', backupApiUrls))
  936. ..add(
  937. DiagnosticsProperty('cacheDataEffectiveDays', cacheDataEffectiveDays),
  938. )
  939. ..add(DiagnosticsProperty('contacts', contacts))
  940. ..add(DiagnosticsProperty('follows', follows))
  941. ..add(DiagnosticsProperty('providers', providers))
  942. ..add(DiagnosticsProperty('signalThresholds', signalThresholds))
  943. ..add(DiagnosticsProperty('packetLossThresholds', packetLossThresholds))
  944. ..add(DiagnosticsProperty('skipGeo', skipGeo))
  945. ..add(DiagnosticsProperty('speedTestTargetList', speedTestTargetList))
  946. ..add(DiagnosticsProperty('websiteUrl', websiteUrl))
  947. ..add(DiagnosticsProperty('visitorDisabled', visitorDisabled))
  948. ..add(DiagnosticsProperty('privacyAgreement', privacyAgreement))
  949. ..add(DiagnosticsProperty('email', email))
  950. ..add(DiagnosticsProperty('blackPkgs', blackPkgs))
  951. ..add(DiagnosticsProperty('whitePkgs', whitePkgs))
  952. ..add(
  953. DiagnosticsProperty('accelerationSampleCount', accelerationSampleCount),
  954. )
  955. ..add(
  956. DiagnosticsProperty(
  957. 'minAccelerationSampleCount',
  958. minAccelerationSampleCount,
  959. ),
  960. )
  961. ..add(
  962. DiagnosticsProperty(
  963. 'connectionWarningThreshold',
  964. connectionWarningThreshold,
  965. ),
  966. )
  967. ..add(DiagnosticsProperty('connectiveTestUrl', connectiveTestUrl))
  968. ..add(DiagnosticsProperty('disabledLogModules', disabledLogModules))
  969. ..add(DiagnosticsProperty('realTimeDbPath', realTimeDbPath))
  970. ..add(DiagnosticsProperty('boostTimeInterval', boostTimeInterval))
  971. ..add(DiagnosticsProperty('pingDisplayMode', pingDisplayMode))
  972. ..add(DiagnosticsProperty('peekTimeInterval', peekTimeInterval))
  973. ..add(DiagnosticsProperty('enableAd', enableAd))
  974. ..add(DiagnosticsProperty('adTimeoutDuration', adTimeoutDuration))
  975. ..add(DiagnosticsProperty('reportActiveInterval', reportActiveInterval))
  976. ..add(DiagnosticsProperty('serverTime', serverTime))
  977. ..add(DiagnosticsProperty('smartGeo', smartGeo));
  978. }
  979. @override
  980. bool operator ==(Object other) {
  981. return identical(this, other) ||
  982. (other.runtimeType == runtimeType &&
  983. other is _$AppConfigImpl &&
  984. const DeepCollectionEquality().equals(other._apiIps, _apiIps) &&
  985. const DeepCollectionEquality().equals(other._apiUrls, _apiUrls) &&
  986. const DeepCollectionEquality().equals(
  987. other._routerApiUrls,
  988. _routerApiUrls,
  989. ) &&
  990. const DeepCollectionEquality().equals(
  991. other._appStatUrls,
  992. _appStatUrls,
  993. ) &&
  994. const DeepCollectionEquality().equals(
  995. other._assetUrls,
  996. _assetUrls,
  997. ) &&
  998. const DeepCollectionEquality().equals(
  999. other._logFileUploadUrls,
  1000. _logFileUploadUrls,
  1001. ) &&
  1002. const DeepCollectionEquality().equals(
  1003. other._realityApiUrls,
  1004. _realityApiUrls,
  1005. ) &&
  1006. const DeepCollectionEquality().equals(
  1007. other._realityAppStatUrls,
  1008. _realityAppStatUrls,
  1009. ) &&
  1010. const DeepCollectionEquality().equals(
  1011. other._realityLogFileUploadUrls,
  1012. _realityLogFileUploadUrls,
  1013. ) &&
  1014. (identical(other.autoPing, autoPing) ||
  1015. other.autoPing == autoPing) &&
  1016. (identical(other.autoPingInterval, autoPingInterval) ||
  1017. other.autoPingInterval == autoPingInterval) &&
  1018. const DeepCollectionEquality().equals(
  1019. other._backupApiUrls,
  1020. _backupApiUrls,
  1021. ) &&
  1022. (identical(other.cacheDataEffectiveDays, cacheDataEffectiveDays) ||
  1023. other.cacheDataEffectiveDays == cacheDataEffectiveDays) &&
  1024. const DeepCollectionEquality().equals(other._contacts, _contacts) &&
  1025. const DeepCollectionEquality().equals(other._follows, _follows) &&
  1026. const DeepCollectionEquality().equals(
  1027. other._providers,
  1028. _providers,
  1029. ) &&
  1030. const DeepCollectionEquality().equals(
  1031. other._signalThresholds,
  1032. _signalThresholds,
  1033. ) &&
  1034. const DeepCollectionEquality().equals(
  1035. other._packetLossThresholds,
  1036. _packetLossThresholds,
  1037. ) &&
  1038. (identical(other.skipGeo, skipGeo) || other.skipGeo == skipGeo) &&
  1039. const DeepCollectionEquality().equals(
  1040. other._speedTestTargetList,
  1041. _speedTestTargetList,
  1042. ) &&
  1043. (identical(other.websiteUrl, websiteUrl) ||
  1044. other.websiteUrl == websiteUrl) &&
  1045. (identical(other.visitorDisabled, visitorDisabled) ||
  1046. other.visitorDisabled == visitorDisabled) &&
  1047. (identical(other.privacyAgreement, privacyAgreement) ||
  1048. other.privacyAgreement == privacyAgreement) &&
  1049. (identical(other.email, email) || other.email == email) &&
  1050. const DeepCollectionEquality().equals(
  1051. other._blackPkgs,
  1052. _blackPkgs,
  1053. ) &&
  1054. const DeepCollectionEquality().equals(
  1055. other._whitePkgs,
  1056. _whitePkgs,
  1057. ) &&
  1058. (identical(
  1059. other.accelerationSampleCount,
  1060. accelerationSampleCount,
  1061. ) ||
  1062. other.accelerationSampleCount == accelerationSampleCount) &&
  1063. (identical(
  1064. other.minAccelerationSampleCount,
  1065. minAccelerationSampleCount,
  1066. ) ||
  1067. other.minAccelerationSampleCount ==
  1068. minAccelerationSampleCount) &&
  1069. (identical(
  1070. other.connectionWarningThreshold,
  1071. connectionWarningThreshold,
  1072. ) ||
  1073. other.connectionWarningThreshold ==
  1074. connectionWarningThreshold) &&
  1075. (identical(other.connectiveTestUrl, connectiveTestUrl) ||
  1076. other.connectiveTestUrl == connectiveTestUrl) &&
  1077. const DeepCollectionEquality().equals(
  1078. other._disabledLogModules,
  1079. _disabledLogModules,
  1080. ) &&
  1081. (identical(other.realTimeDbPath, realTimeDbPath) ||
  1082. other.realTimeDbPath == realTimeDbPath) &&
  1083. (identical(other.boostTimeInterval, boostTimeInterval) ||
  1084. other.boostTimeInterval == boostTimeInterval) &&
  1085. (identical(other.pingDisplayMode, pingDisplayMode) ||
  1086. other.pingDisplayMode == pingDisplayMode) &&
  1087. (identical(other.peekTimeInterval, peekTimeInterval) ||
  1088. other.peekTimeInterval == peekTimeInterval) &&
  1089. (identical(other.enableAd, enableAd) ||
  1090. other.enableAd == enableAd) &&
  1091. (identical(other.adTimeoutDuration, adTimeoutDuration) ||
  1092. other.adTimeoutDuration == adTimeoutDuration) &&
  1093. (identical(other.reportActiveInterval, reportActiveInterval) ||
  1094. other.reportActiveInterval == reportActiveInterval) &&
  1095. (identical(other.serverTime, serverTime) ||
  1096. other.serverTime == serverTime) &&
  1097. (identical(other.smartGeo, smartGeo) ||
  1098. other.smartGeo == smartGeo));
  1099. }
  1100. @JsonKey(includeFromJson: false, includeToJson: false)
  1101. @override
  1102. int get hashCode => Object.hashAll([
  1103. runtimeType,
  1104. const DeepCollectionEquality().hash(_apiIps),
  1105. const DeepCollectionEquality().hash(_apiUrls),
  1106. const DeepCollectionEquality().hash(_routerApiUrls),
  1107. const DeepCollectionEquality().hash(_appStatUrls),
  1108. const DeepCollectionEquality().hash(_assetUrls),
  1109. const DeepCollectionEquality().hash(_logFileUploadUrls),
  1110. const DeepCollectionEquality().hash(_realityApiUrls),
  1111. const DeepCollectionEquality().hash(_realityAppStatUrls),
  1112. const DeepCollectionEquality().hash(_realityLogFileUploadUrls),
  1113. autoPing,
  1114. autoPingInterval,
  1115. const DeepCollectionEquality().hash(_backupApiUrls),
  1116. cacheDataEffectiveDays,
  1117. const DeepCollectionEquality().hash(_contacts),
  1118. const DeepCollectionEquality().hash(_follows),
  1119. const DeepCollectionEquality().hash(_providers),
  1120. const DeepCollectionEquality().hash(_signalThresholds),
  1121. const DeepCollectionEquality().hash(_packetLossThresholds),
  1122. skipGeo,
  1123. const DeepCollectionEquality().hash(_speedTestTargetList),
  1124. websiteUrl,
  1125. visitorDisabled,
  1126. privacyAgreement,
  1127. email,
  1128. const DeepCollectionEquality().hash(_blackPkgs),
  1129. const DeepCollectionEquality().hash(_whitePkgs),
  1130. accelerationSampleCount,
  1131. minAccelerationSampleCount,
  1132. connectionWarningThreshold,
  1133. connectiveTestUrl,
  1134. const DeepCollectionEquality().hash(_disabledLogModules),
  1135. realTimeDbPath,
  1136. boostTimeInterval,
  1137. pingDisplayMode,
  1138. peekTimeInterval,
  1139. enableAd,
  1140. adTimeoutDuration,
  1141. reportActiveInterval,
  1142. serverTime,
  1143. smartGeo,
  1144. ]);
  1145. /// Create a copy of AppConfig
  1146. /// with the given fields replaced by the non-null parameter values.
  1147. @JsonKey(includeFromJson: false, includeToJson: false)
  1148. @override
  1149. @pragma('vm:prefer-inline')
  1150. _$$AppConfigImplCopyWith<_$AppConfigImpl> get copyWith =>
  1151. __$$AppConfigImplCopyWithImpl<_$AppConfigImpl>(this, _$identity);
  1152. @override
  1153. Map<String, dynamic> toJson() {
  1154. return _$$AppConfigImplToJson(this);
  1155. }
  1156. }
  1157. abstract class _AppConfig implements AppConfig {
  1158. const factory _AppConfig({
  1159. final List<String>? apiIps,
  1160. final List<String>? apiUrls,
  1161. final List<String>? routerApiUrls,
  1162. final List<String>? appStatUrls,
  1163. final List<String>? assetUrls,
  1164. final List<String>? logFileUploadUrls,
  1165. final List<String>? realityApiUrls,
  1166. final List<String>? realityAppStatUrls,
  1167. final List<String>? realityLogFileUploadUrls,
  1168. final bool? autoPing,
  1169. final int? autoPingInterval,
  1170. final List<String>? backupApiUrls,
  1171. final int? cacheDataEffectiveDays,
  1172. final List<Contacts>? contacts,
  1173. final List<Contacts>? follows,
  1174. final List<String>? providers,
  1175. final List<int>? signalThresholds,
  1176. final List<int>? packetLossThresholds,
  1177. final SkipGeo? skipGeo,
  1178. final List<SpeedTestTargetList>? speedTestTargetList,
  1179. final String? websiteUrl,
  1180. final bool? visitorDisabled,
  1181. final PrivacyTerms? privacyAgreement,
  1182. final String? email,
  1183. final List<String>? blackPkgs,
  1184. final List<String>? whitePkgs,
  1185. final int? accelerationSampleCount,
  1186. final int? minAccelerationSampleCount,
  1187. final int? connectionWarningThreshold,
  1188. final String? connectiveTestUrl,
  1189. final List<String>? disabledLogModules,
  1190. final String? realTimeDbPath,
  1191. final int? boostTimeInterval,
  1192. final int? pingDisplayMode,
  1193. final int? peekTimeInterval,
  1194. final bool? enableAd,
  1195. final int? adTimeoutDuration,
  1196. final int? reportActiveInterval,
  1197. final int? serverTime,
  1198. final SmartGeo? smartGeo,
  1199. }) = _$AppConfigImpl;
  1200. factory _AppConfig.fromJson(Map<String, dynamic> json) =
  1201. _$AppConfigImpl.fromJson;
  1202. @override
  1203. List<String>? get apiIps;
  1204. @override
  1205. List<String>? get apiUrls;
  1206. @override
  1207. List<String>? get routerApiUrls;
  1208. @override
  1209. List<String>? get appStatUrls;
  1210. @override
  1211. List<String>? get assetUrls;
  1212. @override
  1213. List<String>? get logFileUploadUrls;
  1214. @override
  1215. List<String>? get realityApiUrls;
  1216. @override
  1217. List<String>? get realityAppStatUrls;
  1218. @override
  1219. List<String>? get realityLogFileUploadUrls;
  1220. @override
  1221. bool? get autoPing;
  1222. @override
  1223. int? get autoPingInterval;
  1224. @override
  1225. List<String>? get backupApiUrls;
  1226. @override
  1227. int? get cacheDataEffectiveDays;
  1228. @override
  1229. List<Contacts>? get contacts;
  1230. @override
  1231. List<Contacts>? get follows;
  1232. @override
  1233. List<String>? get providers;
  1234. @override
  1235. List<int>? get signalThresholds;
  1236. @override
  1237. List<int>? get packetLossThresholds;
  1238. @override
  1239. SkipGeo? get skipGeo;
  1240. @override
  1241. List<SpeedTestTargetList>? get speedTestTargetList;
  1242. @override
  1243. String? get websiteUrl;
  1244. @override
  1245. bool? get visitorDisabled; // 游客模式
  1246. @override
  1247. PrivacyTerms? get privacyAgreement;
  1248. @override
  1249. String? get email;
  1250. @override
  1251. List<String>? get blackPkgs;
  1252. @override
  1253. List<String>? get whitePkgs;
  1254. @override
  1255. int? get accelerationSampleCount;
  1256. @override
  1257. int? get minAccelerationSampleCount;
  1258. @override
  1259. int? get connectionWarningThreshold;
  1260. @override
  1261. String? get connectiveTestUrl;
  1262. @override
  1263. List<String>? get disabledLogModules;
  1264. @override
  1265. String? get realTimeDbPath;
  1266. @override
  1267. int? get boostTimeInterval;
  1268. @override
  1269. int? get pingDisplayMode;
  1270. @override
  1271. int? get peekTimeInterval;
  1272. @override
  1273. bool? get enableAd;
  1274. @override
  1275. int? get adTimeoutDuration;
  1276. @override
  1277. int? get reportActiveInterval;
  1278. @override
  1279. int? get serverTime;
  1280. @override
  1281. SmartGeo? get smartGeo;
  1282. /// Create a copy of AppConfig
  1283. /// with the given fields replaced by the non-null parameter values.
  1284. @override
  1285. @JsonKey(includeFromJson: false, includeToJson: false)
  1286. _$$AppConfigImplCopyWith<_$AppConfigImpl> get copyWith =>
  1287. throw _privateConstructorUsedError;
  1288. }
  1289. Contacts _$ContactsFromJson(Map<String, dynamic> json) {
  1290. return _Contacts.fromJson(json);
  1291. }
  1292. /// @nodoc
  1293. mixin _$Contacts {
  1294. String? get title => throw _privateConstructorUsedError;
  1295. String? get url => throw _privateConstructorUsedError;
  1296. /// Serializes this Contacts to a JSON map.
  1297. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  1298. /// Create a copy of Contacts
  1299. /// with the given fields replaced by the non-null parameter values.
  1300. @JsonKey(includeFromJson: false, includeToJson: false)
  1301. $ContactsCopyWith<Contacts> get copyWith =>
  1302. throw _privateConstructorUsedError;
  1303. }
  1304. /// @nodoc
  1305. abstract class $ContactsCopyWith<$Res> {
  1306. factory $ContactsCopyWith(Contacts value, $Res Function(Contacts) then) =
  1307. _$ContactsCopyWithImpl<$Res, Contacts>;
  1308. @useResult
  1309. $Res call({String? title, String? url});
  1310. }
  1311. /// @nodoc
  1312. class _$ContactsCopyWithImpl<$Res, $Val extends Contacts>
  1313. implements $ContactsCopyWith<$Res> {
  1314. _$ContactsCopyWithImpl(this._value, this._then);
  1315. // ignore: unused_field
  1316. final $Val _value;
  1317. // ignore: unused_field
  1318. final $Res Function($Val) _then;
  1319. /// Create a copy of Contacts
  1320. /// with the given fields replaced by the non-null parameter values.
  1321. @pragma('vm:prefer-inline')
  1322. @override
  1323. $Res call({Object? title = freezed, Object? url = freezed}) {
  1324. return _then(
  1325. _value.copyWith(
  1326. title: freezed == title
  1327. ? _value.title
  1328. : title // ignore: cast_nullable_to_non_nullable
  1329. as String?,
  1330. url: freezed == url
  1331. ? _value.url
  1332. : url // ignore: cast_nullable_to_non_nullable
  1333. as String?,
  1334. )
  1335. as $Val,
  1336. );
  1337. }
  1338. }
  1339. /// @nodoc
  1340. abstract class _$$ContactsImplCopyWith<$Res>
  1341. implements $ContactsCopyWith<$Res> {
  1342. factory _$$ContactsImplCopyWith(
  1343. _$ContactsImpl value,
  1344. $Res Function(_$ContactsImpl) then,
  1345. ) = __$$ContactsImplCopyWithImpl<$Res>;
  1346. @override
  1347. @useResult
  1348. $Res call({String? title, String? url});
  1349. }
  1350. /// @nodoc
  1351. class __$$ContactsImplCopyWithImpl<$Res>
  1352. extends _$ContactsCopyWithImpl<$Res, _$ContactsImpl>
  1353. implements _$$ContactsImplCopyWith<$Res> {
  1354. __$$ContactsImplCopyWithImpl(
  1355. _$ContactsImpl _value,
  1356. $Res Function(_$ContactsImpl) _then,
  1357. ) : super(_value, _then);
  1358. /// Create a copy of Contacts
  1359. /// with the given fields replaced by the non-null parameter values.
  1360. @pragma('vm:prefer-inline')
  1361. @override
  1362. $Res call({Object? title = freezed, Object? url = freezed}) {
  1363. return _then(
  1364. _$ContactsImpl(
  1365. title: freezed == title
  1366. ? _value.title
  1367. : title // ignore: cast_nullable_to_non_nullable
  1368. as String?,
  1369. url: freezed == url
  1370. ? _value.url
  1371. : url // ignore: cast_nullable_to_non_nullable
  1372. as String?,
  1373. ),
  1374. );
  1375. }
  1376. }
  1377. /// @nodoc
  1378. @JsonSerializable()
  1379. class _$ContactsImpl with DiagnosticableTreeMixin implements _Contacts {
  1380. const _$ContactsImpl({this.title, this.url});
  1381. factory _$ContactsImpl.fromJson(Map<String, dynamic> json) =>
  1382. _$$ContactsImplFromJson(json);
  1383. @override
  1384. final String? title;
  1385. @override
  1386. final String? url;
  1387. @override
  1388. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  1389. return 'Contacts(title: $title, url: $url)';
  1390. }
  1391. @override
  1392. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  1393. super.debugFillProperties(properties);
  1394. properties
  1395. ..add(DiagnosticsProperty('type', 'Contacts'))
  1396. ..add(DiagnosticsProperty('title', title))
  1397. ..add(DiagnosticsProperty('url', url));
  1398. }
  1399. @override
  1400. bool operator ==(Object other) {
  1401. return identical(this, other) ||
  1402. (other.runtimeType == runtimeType &&
  1403. other is _$ContactsImpl &&
  1404. (identical(other.title, title) || other.title == title) &&
  1405. (identical(other.url, url) || other.url == url));
  1406. }
  1407. @JsonKey(includeFromJson: false, includeToJson: false)
  1408. @override
  1409. int get hashCode => Object.hash(runtimeType, title, url);
  1410. /// Create a copy of Contacts
  1411. /// with the given fields replaced by the non-null parameter values.
  1412. @JsonKey(includeFromJson: false, includeToJson: false)
  1413. @override
  1414. @pragma('vm:prefer-inline')
  1415. _$$ContactsImplCopyWith<_$ContactsImpl> get copyWith =>
  1416. __$$ContactsImplCopyWithImpl<_$ContactsImpl>(this, _$identity);
  1417. @override
  1418. Map<String, dynamic> toJson() {
  1419. return _$$ContactsImplToJson(this);
  1420. }
  1421. }
  1422. abstract class _Contacts implements Contacts {
  1423. const factory _Contacts({final String? title, final String? url}) =
  1424. _$ContactsImpl;
  1425. factory _Contacts.fromJson(Map<String, dynamic> json) =
  1426. _$ContactsImpl.fromJson;
  1427. @override
  1428. String? get title;
  1429. @override
  1430. String? get url;
  1431. /// Create a copy of Contacts
  1432. /// with the given fields replaced by the non-null parameter values.
  1433. @override
  1434. @JsonKey(includeFromJson: false, includeToJson: false)
  1435. _$$ContactsImplCopyWith<_$ContactsImpl> get copyWith =>
  1436. throw _privateConstructorUsedError;
  1437. }
  1438. SpeedTestTargetList _$SpeedTestTargetListFromJson(Map<String, dynamic> json) {
  1439. return _SpeedTestTargetList.fromJson(json);
  1440. }
  1441. /// @nodoc
  1442. mixin _$SpeedTestTargetList {
  1443. String? get title => throw _privateConstructorUsedError;
  1444. String? get url => throw _privateConstructorUsedError;
  1445. /// Serializes this SpeedTestTargetList to a JSON map.
  1446. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  1447. /// Create a copy of SpeedTestTargetList
  1448. /// with the given fields replaced by the non-null parameter values.
  1449. @JsonKey(includeFromJson: false, includeToJson: false)
  1450. $SpeedTestTargetListCopyWith<SpeedTestTargetList> get copyWith =>
  1451. throw _privateConstructorUsedError;
  1452. }
  1453. /// @nodoc
  1454. abstract class $SpeedTestTargetListCopyWith<$Res> {
  1455. factory $SpeedTestTargetListCopyWith(
  1456. SpeedTestTargetList value,
  1457. $Res Function(SpeedTestTargetList) then,
  1458. ) = _$SpeedTestTargetListCopyWithImpl<$Res, SpeedTestTargetList>;
  1459. @useResult
  1460. $Res call({String? title, String? url});
  1461. }
  1462. /// @nodoc
  1463. class _$SpeedTestTargetListCopyWithImpl<$Res, $Val extends SpeedTestTargetList>
  1464. implements $SpeedTestTargetListCopyWith<$Res> {
  1465. _$SpeedTestTargetListCopyWithImpl(this._value, this._then);
  1466. // ignore: unused_field
  1467. final $Val _value;
  1468. // ignore: unused_field
  1469. final $Res Function($Val) _then;
  1470. /// Create a copy of SpeedTestTargetList
  1471. /// with the given fields replaced by the non-null parameter values.
  1472. @pragma('vm:prefer-inline')
  1473. @override
  1474. $Res call({Object? title = freezed, Object? url = freezed}) {
  1475. return _then(
  1476. _value.copyWith(
  1477. title: freezed == title
  1478. ? _value.title
  1479. : title // ignore: cast_nullable_to_non_nullable
  1480. as String?,
  1481. url: freezed == url
  1482. ? _value.url
  1483. : url // ignore: cast_nullable_to_non_nullable
  1484. as String?,
  1485. )
  1486. as $Val,
  1487. );
  1488. }
  1489. }
  1490. /// @nodoc
  1491. abstract class _$$SpeedTestTargetListImplCopyWith<$Res>
  1492. implements $SpeedTestTargetListCopyWith<$Res> {
  1493. factory _$$SpeedTestTargetListImplCopyWith(
  1494. _$SpeedTestTargetListImpl value,
  1495. $Res Function(_$SpeedTestTargetListImpl) then,
  1496. ) = __$$SpeedTestTargetListImplCopyWithImpl<$Res>;
  1497. @override
  1498. @useResult
  1499. $Res call({String? title, String? url});
  1500. }
  1501. /// @nodoc
  1502. class __$$SpeedTestTargetListImplCopyWithImpl<$Res>
  1503. extends _$SpeedTestTargetListCopyWithImpl<$Res, _$SpeedTestTargetListImpl>
  1504. implements _$$SpeedTestTargetListImplCopyWith<$Res> {
  1505. __$$SpeedTestTargetListImplCopyWithImpl(
  1506. _$SpeedTestTargetListImpl _value,
  1507. $Res Function(_$SpeedTestTargetListImpl) _then,
  1508. ) : super(_value, _then);
  1509. /// Create a copy of SpeedTestTargetList
  1510. /// with the given fields replaced by the non-null parameter values.
  1511. @pragma('vm:prefer-inline')
  1512. @override
  1513. $Res call({Object? title = freezed, Object? url = freezed}) {
  1514. return _then(
  1515. _$SpeedTestTargetListImpl(
  1516. title: freezed == title
  1517. ? _value.title
  1518. : title // ignore: cast_nullable_to_non_nullable
  1519. as String?,
  1520. url: freezed == url
  1521. ? _value.url
  1522. : url // ignore: cast_nullable_to_non_nullable
  1523. as String?,
  1524. ),
  1525. );
  1526. }
  1527. }
  1528. /// @nodoc
  1529. @JsonSerializable()
  1530. class _$SpeedTestTargetListImpl
  1531. with DiagnosticableTreeMixin
  1532. implements _SpeedTestTargetList {
  1533. const _$SpeedTestTargetListImpl({this.title, this.url});
  1534. factory _$SpeedTestTargetListImpl.fromJson(Map<String, dynamic> json) =>
  1535. _$$SpeedTestTargetListImplFromJson(json);
  1536. @override
  1537. final String? title;
  1538. @override
  1539. final String? url;
  1540. @override
  1541. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  1542. return 'SpeedTestTargetList(title: $title, url: $url)';
  1543. }
  1544. @override
  1545. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  1546. super.debugFillProperties(properties);
  1547. properties
  1548. ..add(DiagnosticsProperty('type', 'SpeedTestTargetList'))
  1549. ..add(DiagnosticsProperty('title', title))
  1550. ..add(DiagnosticsProperty('url', url));
  1551. }
  1552. @override
  1553. bool operator ==(Object other) {
  1554. return identical(this, other) ||
  1555. (other.runtimeType == runtimeType &&
  1556. other is _$SpeedTestTargetListImpl &&
  1557. (identical(other.title, title) || other.title == title) &&
  1558. (identical(other.url, url) || other.url == url));
  1559. }
  1560. @JsonKey(includeFromJson: false, includeToJson: false)
  1561. @override
  1562. int get hashCode => Object.hash(runtimeType, title, url);
  1563. /// Create a copy of SpeedTestTargetList
  1564. /// with the given fields replaced by the non-null parameter values.
  1565. @JsonKey(includeFromJson: false, includeToJson: false)
  1566. @override
  1567. @pragma('vm:prefer-inline')
  1568. _$$SpeedTestTargetListImplCopyWith<_$SpeedTestTargetListImpl> get copyWith =>
  1569. __$$SpeedTestTargetListImplCopyWithImpl<_$SpeedTestTargetListImpl>(
  1570. this,
  1571. _$identity,
  1572. );
  1573. @override
  1574. Map<String, dynamic> toJson() {
  1575. return _$$SpeedTestTargetListImplToJson(this);
  1576. }
  1577. }
  1578. abstract class _SpeedTestTargetList implements SpeedTestTargetList {
  1579. const factory _SpeedTestTargetList({final String? title, final String? url}) =
  1580. _$SpeedTestTargetListImpl;
  1581. factory _SpeedTestTargetList.fromJson(Map<String, dynamic> json) =
  1582. _$SpeedTestTargetListImpl.fromJson;
  1583. @override
  1584. String? get title;
  1585. @override
  1586. String? get url;
  1587. /// Create a copy of SpeedTestTargetList
  1588. /// with the given fields replaced by the non-null parameter values.
  1589. @override
  1590. @JsonKey(includeFromJson: false, includeToJson: false)
  1591. _$$SpeedTestTargetListImplCopyWith<_$SpeedTestTargetListImpl> get copyWith =>
  1592. throw _privateConstructorUsedError;
  1593. }