Skip to content

Commit

Permalink
Chore: Add final
Browse files Browse the repository at this point in the history
  • Loading branch information
ntut-xuan committed Feb 12, 2024
1 parent e3f75f4 commit 33f07fe
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions lib/src/model/coursetable/user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,16 @@ part 'user.g.dart';

@JsonSerializable()
class User {
String id;
String name;
String className;
final String id;
final String name;
final String className;

User.origin()
: id = "",
name = "",
className = "";

User({required this.id, required this.name, required this.className}) {
id = id;
name = name;
className = className;
}
User({required this.id, required this.name, required this.className});

factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);
Map<String, dynamic> toJson() => _$UserToJson(this);
Expand Down

0 comments on commit 33f07fe

Please sign in to comment.