10
10
11
11
// ignore_for_file: no_leading_underscores_for_library_prefixes
12
12
import 'package:serverpod_client/serverpod_client.dart' as _i1;
13
- import 'package:uuid/uuid.dart' as _i2;
14
- import '../../changed_id_type/many_to_many/enrollment.dart' as _i3;
13
+ import '../../changed_id_type/many_to_many/enrollment.dart' as _i2;
15
14
16
15
abstract class StudentUuid implements _i1.SerializableModel {
17
16
StudentUuid ._({
18
- _i1. UuidValue ? id,
17
+ this . id,
19
18
required this .name,
20
19
this .enrollments,
21
- }) : id = id ?? _i2. Uuid (). v4obj () ;
20
+ });
22
21
23
22
factory StudentUuid ({
24
23
_i1.UuidValue ? id,
25
24
required String name,
26
- List <_i3 .EnrollmentInt >? enrollments,
25
+ List <_i2 .EnrollmentInt >? enrollments,
27
26
}) = _StudentUuidImpl ;
28
27
29
28
factory StudentUuid .fromJson (Map <String , dynamic > jsonSerialization) {
@@ -33,7 +32,7 @@ abstract class StudentUuid implements _i1.SerializableModel {
33
32
: _i1.UuidValueJsonExtension .fromJson (jsonSerialization['id' ]),
34
33
name: jsonSerialization['name' ] as String ,
35
34
enrollments: (jsonSerialization['enrollments' ] as List ? )
36
- ? .map ((e) => _i3 .EnrollmentInt .fromJson ((e as Map <String , dynamic >)))
35
+ ? .map ((e) => _i2 .EnrollmentInt .fromJson ((e as Map <String , dynamic >)))
37
36
.toList (),
38
37
);
39
38
}
@@ -45,15 +44,15 @@ abstract class StudentUuid implements _i1.SerializableModel {
45
44
46
45
String name;
47
46
48
- List <_i3 .EnrollmentInt >? enrollments;
47
+ List <_i2 .EnrollmentInt >? enrollments;
49
48
50
49
/// Returns a shallow copy of this [StudentUuid]
51
50
/// with some or all fields replaced by the given arguments.
52
51
@_i1.useResult
53
52
StudentUuid copyWith ({
54
53
_i1.UuidValue ? id,
55
54
String ? name,
56
- List <_i3 .EnrollmentInt >? enrollments,
55
+ List <_i2 .EnrollmentInt >? enrollments,
57
56
});
58
57
@override
59
58
Map <String , dynamic > toJson () {
@@ -77,7 +76,7 @@ class _StudentUuidImpl extends StudentUuid {
77
76
_StudentUuidImpl ({
78
77
_i1.UuidValue ? id,
79
78
required String name,
80
- List <_i3 .EnrollmentInt >? enrollments,
79
+ List <_i2 .EnrollmentInt >? enrollments,
81
80
}) : super ._(
82
81
id: id,
83
82
name: name,
@@ -96,7 +95,7 @@ class _StudentUuidImpl extends StudentUuid {
96
95
return StudentUuid (
97
96
id: id is _i1.UuidValue ? ? id : this .id,
98
97
name: name ?? this .name,
99
- enrollments: enrollments is List <_i3 .EnrollmentInt >?
98
+ enrollments: enrollments is List <_i2 .EnrollmentInt >?
100
99
? enrollments
101
100
: this .enrollments? .map ((e0) => e0.copyWith ()).toList (),
102
101
);
0 commit comments