app_config.freezed.dart 58 KB

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