progress in new subject page

This commit is contained in:
Kima
2024-04-02 00:04:05 +02:00
parent 98efdfd8cf
commit 7f88c8c3e1
4 changed files with 88 additions and 31 deletions

View File

@@ -1,3 +1,5 @@
import 'package:refilc_kreta_api/models/teacher.dart';
import 'category.dart';
class GradeSubject {
@@ -6,6 +8,7 @@ class GradeSubject {
String name;
String? renamedTo;
double? customRounding;
Teacher? teacher;
bool get isRenamed => renamedTo != null;
bool get hasCustomRounding => customRounding != null;
@@ -17,6 +20,7 @@ class GradeSubject {
this.renamedTo,
// v5
this.customRounding,
this.teacher,
});
factory GradeSubject.fromJson(Map json) {