ranks.freezed.dart 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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 'ranks.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. Ranks _$RanksFromJson(Map<String, dynamic> json) {
  14. return _Ranks.fromJson(json);
  15. }
  16. /// @nodoc
  17. mixin _$Ranks {
  18. int? get id => throw _privateConstructorUsedError;
  19. String? get name => throw _privateConstructorUsedError;
  20. String? get icon => throw _privateConstructorUsedError;
  21. /// Serializes this Ranks to a JSON map.
  22. Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  23. /// Create a copy of Ranks
  24. /// with the given fields replaced by the non-null parameter values.
  25. @JsonKey(includeFromJson: false, includeToJson: false)
  26. $RanksCopyWith<Ranks> get copyWith => throw _privateConstructorUsedError;
  27. }
  28. /// @nodoc
  29. abstract class $RanksCopyWith<$Res> {
  30. factory $RanksCopyWith(Ranks value, $Res Function(Ranks) then) =
  31. _$RanksCopyWithImpl<$Res, Ranks>;
  32. @useResult
  33. $Res call({int? id, String? name, String? icon});
  34. }
  35. /// @nodoc
  36. class _$RanksCopyWithImpl<$Res, $Val extends Ranks>
  37. implements $RanksCopyWith<$Res> {
  38. _$RanksCopyWithImpl(this._value, this._then);
  39. // ignore: unused_field
  40. final $Val _value;
  41. // ignore: unused_field
  42. final $Res Function($Val) _then;
  43. /// Create a copy of Ranks
  44. /// with the given fields replaced by the non-null parameter values.
  45. @pragma('vm:prefer-inline')
  46. @override
  47. $Res call({
  48. Object? id = freezed,
  49. Object? name = freezed,
  50. Object? icon = freezed,
  51. }) {
  52. return _then(
  53. _value.copyWith(
  54. id: freezed == id
  55. ? _value.id
  56. : id // ignore: cast_nullable_to_non_nullable
  57. as int?,
  58. name: freezed == name
  59. ? _value.name
  60. : name // ignore: cast_nullable_to_non_nullable
  61. as String?,
  62. icon: freezed == icon
  63. ? _value.icon
  64. : icon // ignore: cast_nullable_to_non_nullable
  65. as String?,
  66. )
  67. as $Val,
  68. );
  69. }
  70. }
  71. /// @nodoc
  72. abstract class _$$RanksImplCopyWith<$Res> implements $RanksCopyWith<$Res> {
  73. factory _$$RanksImplCopyWith(
  74. _$RanksImpl value,
  75. $Res Function(_$RanksImpl) then,
  76. ) = __$$RanksImplCopyWithImpl<$Res>;
  77. @override
  78. @useResult
  79. $Res call({int? id, String? name, String? icon});
  80. }
  81. /// @nodoc
  82. class __$$RanksImplCopyWithImpl<$Res>
  83. extends _$RanksCopyWithImpl<$Res, _$RanksImpl>
  84. implements _$$RanksImplCopyWith<$Res> {
  85. __$$RanksImplCopyWithImpl(
  86. _$RanksImpl _value,
  87. $Res Function(_$RanksImpl) _then,
  88. ) : super(_value, _then);
  89. /// Create a copy of Ranks
  90. /// with the given fields replaced by the non-null parameter values.
  91. @pragma('vm:prefer-inline')
  92. @override
  93. $Res call({
  94. Object? id = freezed,
  95. Object? name = freezed,
  96. Object? icon = freezed,
  97. }) {
  98. return _then(
  99. _$RanksImpl(
  100. id: freezed == id
  101. ? _value.id
  102. : id // ignore: cast_nullable_to_non_nullable
  103. as int?,
  104. name: freezed == name
  105. ? _value.name
  106. : name // ignore: cast_nullable_to_non_nullable
  107. as String?,
  108. icon: freezed == icon
  109. ? _value.icon
  110. : icon // ignore: cast_nullable_to_non_nullable
  111. as String?,
  112. ),
  113. );
  114. }
  115. }
  116. /// @nodoc
  117. @JsonSerializable()
  118. class _$RanksImpl with DiagnosticableTreeMixin implements _Ranks {
  119. const _$RanksImpl({this.id, this.name, this.icon});
  120. factory _$RanksImpl.fromJson(Map<String, dynamic> json) =>
  121. _$$RanksImplFromJson(json);
  122. @override
  123. final int? id;
  124. @override
  125. final String? name;
  126. @override
  127. final String? icon;
  128. @override
  129. String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
  130. return 'Ranks(id: $id, name: $name, icon: $icon)';
  131. }
  132. @override
  133. void debugFillProperties(DiagnosticPropertiesBuilder properties) {
  134. super.debugFillProperties(properties);
  135. properties
  136. ..add(DiagnosticsProperty('type', 'Ranks'))
  137. ..add(DiagnosticsProperty('id', id))
  138. ..add(DiagnosticsProperty('name', name))
  139. ..add(DiagnosticsProperty('icon', icon));
  140. }
  141. @override
  142. bool operator ==(Object other) {
  143. return identical(this, other) ||
  144. (other.runtimeType == runtimeType &&
  145. other is _$RanksImpl &&
  146. (identical(other.id, id) || other.id == id) &&
  147. (identical(other.name, name) || other.name == name) &&
  148. (identical(other.icon, icon) || other.icon == icon));
  149. }
  150. @JsonKey(includeFromJson: false, includeToJson: false)
  151. @override
  152. int get hashCode => Object.hash(runtimeType, id, name, icon);
  153. /// Create a copy of Ranks
  154. /// with the given fields replaced by the non-null parameter values.
  155. @JsonKey(includeFromJson: false, includeToJson: false)
  156. @override
  157. @pragma('vm:prefer-inline')
  158. _$$RanksImplCopyWith<_$RanksImpl> get copyWith =>
  159. __$$RanksImplCopyWithImpl<_$RanksImpl>(this, _$identity);
  160. @override
  161. Map<String, dynamic> toJson() {
  162. return _$$RanksImplToJson(this);
  163. }
  164. }
  165. abstract class _Ranks implements Ranks {
  166. const factory _Ranks({
  167. final int? id,
  168. final String? name,
  169. final String? icon,
  170. }) = _$RanksImpl;
  171. factory _Ranks.fromJson(Map<String, dynamic> json) = _$RanksImpl.fromJson;
  172. @override
  173. int? get id;
  174. @override
  175. String? get name;
  176. @override
  177. String? get icon;
  178. /// Create a copy of Ranks
  179. /// with the given fields replaced by the non-null parameter values.
  180. @override
  181. @JsonKey(includeFromJson: false, includeToJson: false)
  182. _$$RanksImplCopyWith<_$RanksImpl> get copyWith =>
  183. throw _privateConstructorUsedError;
  184. }