Skip to content

Commit 2249b57

Browse files
committed
feat[app_models]: run build
1 parent c55f323 commit 2249b57

File tree

2 files changed

+43
-25
lines changed

2 files changed

+43
-25
lines changed

packages/app_models/lib/src/models/user.freezed.dart

Lines changed: 40 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ part of 'user.dart';
1212
T _$identity<T>(T value) => value;
1313

1414
final _privateConstructorUsedError = UnsupportedError(
15-
'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#custom-getters-and-methods');
15+
'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');
1616

1717
User _$UserFromJson(Map<String, dynamic> json) {
1818
return _User.fromJson(json);
@@ -23,8 +23,12 @@ mixin _$User {
2323
String? get username => throw _privateConstructorUsedError;
2424
String? get password => throw _privateConstructorUsedError;
2525

26+
/// Serializes this User to a JSON map.
2627
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
27-
@JsonKey(ignore: true)
28+
29+
/// Create a copy of User
30+
/// with the given fields replaced by the non-null parameter values.
31+
@JsonKey(includeFromJson: false, includeToJson: false)
2832
$UserCopyWith<User> get copyWith => throw _privateConstructorUsedError;
2933
}
3034

@@ -46,6 +50,8 @@ class _$UserCopyWithImpl<$Res, $Val extends User>
4650
// ignore: unused_field
4751
final $Res Function($Val) _then;
4852

53+
/// Create a copy of User
54+
/// with the given fields replaced by the non-null parameter values.
4955
@pragma('vm:prefer-inline')
5056
@override
5157
$Res call({
@@ -66,27 +72,31 @@ class _$UserCopyWithImpl<$Res, $Val extends User>
6672
}
6773

6874
/// @nodoc
69-
abstract class _$$_UserCopyWith<$Res> implements $UserCopyWith<$Res> {
70-
factory _$$_UserCopyWith(_$_User value, $Res Function(_$_User) then) =
71-
__$$_UserCopyWithImpl<$Res>;
75+
abstract class _$$UserImplCopyWith<$Res> implements $UserCopyWith<$Res> {
76+
factory _$$UserImplCopyWith(
77+
_$UserImpl value, $Res Function(_$UserImpl) then) =
78+
__$$UserImplCopyWithImpl<$Res>;
7279
@override
7380
@useResult
7481
$Res call({String? username, String? password});
7582
}
7683

7784
/// @nodoc
78-
class __$$_UserCopyWithImpl<$Res> extends _$UserCopyWithImpl<$Res, _$_User>
79-
implements _$$_UserCopyWith<$Res> {
80-
__$$_UserCopyWithImpl(_$_User _value, $Res Function(_$_User) _then)
85+
class __$$UserImplCopyWithImpl<$Res>
86+
extends _$UserCopyWithImpl<$Res, _$UserImpl>
87+
implements _$$UserImplCopyWith<$Res> {
88+
__$$UserImplCopyWithImpl(_$UserImpl _value, $Res Function(_$UserImpl) _then)
8189
: super(_value, _then);
8290

91+
/// Create a copy of User
92+
/// with the given fields replaced by the non-null parameter values.
8393
@pragma('vm:prefer-inline')
8494
@override
8595
$Res call({
8696
Object? username = freezed,
8797
Object? password = freezed,
8898
}) {
89-
return _then(_$_User(
99+
return _then(_$UserImpl(
90100
username: freezed == username
91101
? _value.username
92102
: username // ignore: cast_nullable_to_non_nullable
@@ -101,10 +111,11 @@ class __$$_UserCopyWithImpl<$Res> extends _$UserCopyWithImpl<$Res, _$_User>
101111

102112
/// @nodoc
103113
@JsonSerializable()
104-
class _$_User implements _User {
105-
const _$_User({this.username, this.password});
114+
class _$UserImpl implements _User {
115+
const _$UserImpl({this.username, this.password});
106116

107-
factory _$_User.fromJson(Map<String, dynamic> json) => _$$_UserFromJson(json);
117+
factory _$UserImpl.fromJson(Map<String, dynamic> json) =>
118+
_$$UserImplFromJson(json);
108119

109120
@override
110121
final String? username;
@@ -117,45 +128,51 @@ class _$_User implements _User {
117128
}
118129

119130
@override
120-
bool operator ==(dynamic other) {
131+
bool operator ==(Object other) {
121132
return identical(this, other) ||
122133
(other.runtimeType == runtimeType &&
123-
other is _$_User &&
134+
other is _$UserImpl &&
124135
(identical(other.username, username) ||
125136
other.username == username) &&
126137
(identical(other.password, password) ||
127138
other.password == password));
128139
}
129140

130-
@JsonKey(ignore: true)
141+
@JsonKey(includeFromJson: false, includeToJson: false)
131142
@override
132143
int get hashCode => Object.hash(runtimeType, username, password);
133144

134-
@JsonKey(ignore: true)
145+
/// Create a copy of User
146+
/// with the given fields replaced by the non-null parameter values.
147+
@JsonKey(includeFromJson: false, includeToJson: false)
135148
@override
136149
@pragma('vm:prefer-inline')
137-
_$$_UserCopyWith<_$_User> get copyWith =>
138-
__$$_UserCopyWithImpl<_$_User>(this, _$identity);
150+
_$$UserImplCopyWith<_$UserImpl> get copyWith =>
151+
__$$UserImplCopyWithImpl<_$UserImpl>(this, _$identity);
139152

140153
@override
141154
Map<String, dynamic> toJson() {
142-
return _$$_UserToJson(
155+
return _$$UserImplToJson(
143156
this,
144157
);
145158
}
146159
}
147160

148161
abstract class _User implements User {
149162
const factory _User({final String? username, final String? password}) =
150-
_$_User;
163+
_$UserImpl;
151164

152-
factory _User.fromJson(Map<String, dynamic> json) = _$_User.fromJson;
165+
factory _User.fromJson(Map<String, dynamic> json) = _$UserImpl.fromJson;
153166

154167
@override
155168
String? get username;
156169
@override
157170
String? get password;
171+
172+
/// Create a copy of User
173+
/// with the given fields replaced by the non-null parameter values.
158174
@override
159-
@JsonKey(ignore: true)
160-
_$$_UserCopyWith<_$_User> get copyWith => throw _privateConstructorUsedError;
175+
@JsonKey(includeFromJson: false, includeToJson: false)
176+
_$$UserImplCopyWith<_$UserImpl> get copyWith =>
177+
throw _privateConstructorUsedError;
161178
}

packages/app_models/lib/src/models/user.g.dart

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)