smart_geo.freezed.dart 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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 'smart_geo.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. SmartGeo _$SmartGeoFromJson(Map<String, dynamic> json) {
  14. return _SmartGeo.fromJson(json);
  15. }
  16. /// @nodoc
  17. mixin _$SmartGeo {
  18. String? get geoSiteUrl => throw _privateConstructorUsedError;
  19. String? get geoSiteMd5 => throw _privateConstructorUsedError;
  20. String? get geoIpUrl => throw _privateConstructorUsedError;
  21. String? get geoIpMd5 => throw _privateConstructorUsedError;
  22. /// Serializes this SmartGeo to a JSON map.
  23. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  24. /// Create a copy of SmartGeo
  25. /// with the given fields replaced by the non-null parameter values.
  26. @JsonKey(includeFromJson: false, includeToJson: false)
  27. $SmartGeoCopyWith<SmartGeo> get copyWith =>
  28. throw _privateConstructorUsedError;
  29. }
  30. /// @nodoc
  31. abstract class $SmartGeoCopyWith<$Res> {
  32. factory $SmartGeoCopyWith(SmartGeo value, $Res Function(SmartGeo) then) =
  33. _$SmartGeoCopyWithImpl<$Res, SmartGeo>;
  34. @useResult
  35. $Res call({
  36. String? geoSiteUrl,
  37. String? geoSiteMd5,
  38. String? geoIpUrl,
  39. String? geoIpMd5,
  40. });
  41. }
  42. /// @nodoc
  43. class _$SmartGeoCopyWithImpl<$Res, $Val extends SmartGeo>
  44. implements $SmartGeoCopyWith<$Res> {
  45. _$SmartGeoCopyWithImpl(this._value, this._then);
  46. // ignore: unused_field
  47. final $Val _value;
  48. // ignore: unused_field
  49. final $Res Function($Val) _then;
  50. /// Create a copy of SmartGeo
  51. /// with the given fields replaced by the non-null parameter values.
  52. @pragma('vm:prefer-inline')
  53. @override
  54. $Res call({
  55. Object? geoSiteUrl = freezed,
  56. Object? geoSiteMd5 = freezed,
  57. Object? geoIpUrl = freezed,
  58. Object? geoIpMd5 = freezed,
  59. }) {
  60. return _then(
  61. _value.copyWith(
  62. geoSiteUrl: freezed == geoSiteUrl
  63. ? _value.geoSiteUrl
  64. : geoSiteUrl // ignore: cast_nullable_to_non_nullable
  65. as String?,
  66. geoSiteMd5: freezed == geoSiteMd5
  67. ? _value.geoSiteMd5
  68. : geoSiteMd5 // ignore: cast_nullable_to_non_nullable
  69. as String?,
  70. geoIpUrl: freezed == geoIpUrl
  71. ? _value.geoIpUrl
  72. : geoIpUrl // ignore: cast_nullable_to_non_nullable
  73. as String?,
  74. geoIpMd5: freezed == geoIpMd5
  75. ? _value.geoIpMd5
  76. : geoIpMd5 // ignore: cast_nullable_to_non_nullable
  77. as String?,
  78. )
  79. as $Val,
  80. );
  81. }
  82. }
  83. /// @nodoc
  84. abstract class _$$SmartGeoImplCopyWith<$Res>
  85. implements $SmartGeoCopyWith<$Res> {
  86. factory _$$SmartGeoImplCopyWith(
  87. _$SmartGeoImpl value,
  88. $Res Function(_$SmartGeoImpl) then,
  89. ) = __$$SmartGeoImplCopyWithImpl<$Res>;
  90. @override
  91. @useResult
  92. $Res call({
  93. String? geoSiteUrl,
  94. String? geoSiteMd5,
  95. String? geoIpUrl,
  96. String? geoIpMd5,
  97. });
  98. }
  99. /// @nodoc
  100. class __$$SmartGeoImplCopyWithImpl<$Res>
  101. extends _$SmartGeoCopyWithImpl<$Res, _$SmartGeoImpl>
  102. implements _$$SmartGeoImplCopyWith<$Res> {
  103. __$$SmartGeoImplCopyWithImpl(
  104. _$SmartGeoImpl _value,
  105. $Res Function(_$SmartGeoImpl) _then,
  106. ) : super(_value, _then);
  107. /// Create a copy of SmartGeo
  108. /// with the given fields replaced by the non-null parameter values.
  109. @pragma('vm:prefer-inline')
  110. @override
  111. $Res call({
  112. Object? geoSiteUrl = freezed,
  113. Object? geoSiteMd5 = freezed,
  114. Object? geoIpUrl = freezed,
  115. Object? geoIpMd5 = freezed,
  116. }) {
  117. return _then(
  118. _$SmartGeoImpl(
  119. geoSiteUrl: freezed == geoSiteUrl
  120. ? _value.geoSiteUrl
  121. : geoSiteUrl // ignore: cast_nullable_to_non_nullable
  122. as String?,
  123. geoSiteMd5: freezed == geoSiteMd5
  124. ? _value.geoSiteMd5
  125. : geoSiteMd5 // ignore: cast_nullable_to_non_nullable
  126. as String?,
  127. geoIpUrl: freezed == geoIpUrl
  128. ? _value.geoIpUrl
  129. : geoIpUrl // ignore: cast_nullable_to_non_nullable
  130. as String?,
  131. geoIpMd5: freezed == geoIpMd5
  132. ? _value.geoIpMd5
  133. : geoIpMd5 // ignore: cast_nullable_to_non_nullable
  134. as String?,
  135. ),
  136. );
  137. }
  138. }
  139. /// @nodoc
  140. @JsonSerializable()
  141. class _$SmartGeoImpl with DiagnosticableTreeMixin implements _SmartGeo {
  142. const _$SmartGeoImpl({
  143. this.geoSiteUrl,
  144. this.geoSiteMd5,
  145. this.geoIpUrl,
  146. this.geoIpMd5,
  147. });
  148. factory _$SmartGeoImpl.fromJson(Map<String, dynamic> json) =>
  149. _$$SmartGeoImplFromJson(json);
  150. @override
  151. final String? geoSiteUrl;
  152. @override
  153. final String? geoSiteMd5;
  154. @override
  155. final String? geoIpUrl;
  156. @override
  157. final String? geoIpMd5;
  158. @override
  159. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  160. return 'SmartGeo(geoSiteUrl: $geoSiteUrl, geoSiteMd5: $geoSiteMd5, geoIpUrl: $geoIpUrl, geoIpMd5: $geoIpMd5)';
  161. }
  162. @override
  163. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  164. super.debugFillProperties(properties);
  165. properties
  166. ..add(DiagnosticsProperty('type', 'SmartGeo'))
  167. ..add(DiagnosticsProperty('geoSiteUrl', geoSiteUrl))
  168. ..add(DiagnosticsProperty('geoSiteMd5', geoSiteMd5))
  169. ..add(DiagnosticsProperty('geoIpUrl', geoIpUrl))
  170. ..add(DiagnosticsProperty('geoIpMd5', geoIpMd5));
  171. }
  172. @override
  173. bool operator ==(Object other) {
  174. return identical(this, other) ||
  175. (other.runtimeType == runtimeType &&
  176. other is _$SmartGeoImpl &&
  177. (identical(other.geoSiteUrl, geoSiteUrl) ||
  178. other.geoSiteUrl == geoSiteUrl) &&
  179. (identical(other.geoSiteMd5, geoSiteMd5) ||
  180. other.geoSiteMd5 == geoSiteMd5) &&
  181. (identical(other.geoIpUrl, geoIpUrl) ||
  182. other.geoIpUrl == geoIpUrl) &&
  183. (identical(other.geoIpMd5, geoIpMd5) ||
  184. other.geoIpMd5 == geoIpMd5));
  185. }
  186. @JsonKey(includeFromJson: false, includeToJson: false)
  187. @override
  188. int get hashCode =>
  189. Object.hash(runtimeType, geoSiteUrl, geoSiteMd5, geoIpUrl, geoIpMd5);
  190. /// Create a copy of SmartGeo
  191. /// with the given fields replaced by the non-null parameter values.
  192. @JsonKey(includeFromJson: false, includeToJson: false)
  193. @override
  194. @pragma('vm:prefer-inline')
  195. _$$SmartGeoImplCopyWith<_$SmartGeoImpl> get copyWith =>
  196. __$$SmartGeoImplCopyWithImpl<_$SmartGeoImpl>(this, _$identity);
  197. @override
  198. Map<String, dynamic> toJson() {
  199. return _$$SmartGeoImplToJson(this);
  200. }
  201. }
  202. abstract class _SmartGeo implements SmartGeo {
  203. const factory _SmartGeo({
  204. final String? geoSiteUrl,
  205. final String? geoSiteMd5,
  206. final String? geoIpUrl,
  207. final String? geoIpMd5,
  208. }) = _$SmartGeoImpl;
  209. factory _SmartGeo.fromJson(Map<String, dynamic> json) =
  210. _$SmartGeoImpl.fromJson;
  211. @override
  212. String? get geoSiteUrl;
  213. @override
  214. String? get geoSiteMd5;
  215. @override
  216. String? get geoIpUrl;
  217. @override
  218. String? get geoIpMd5;
  219. /// Create a copy of SmartGeo
  220. /// with the given fields replaced by the non-null parameter values.
  221. @override
  222. @JsonKey(includeFromJson: false, includeToJson: false)
  223. _$$SmartGeoImplCopyWith<_$SmartGeoImpl> get copyWith =>
  224. throw _privateConstructorUsedError;
  225. }