first commit

This commit is contained in:
2025-12-27 20:46:49 +01:00
commit 8ab3df59d4
141 changed files with 8326 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
class School {
final int id;
final String name;
final String? logo;
final String? addressFull;
School({required this.id, required this.name, this.logo, this.addressFull});
factory School.fromJson(Map<String, dynamic> j) {
return School(
id: (j['id'] as num).toInt(),
name: (j['name'] ?? '').toString(),
logo: (j['logo'] as String?)?.trim().isEmpty == true ? null : j['logo'],
addressFull: (j['address_full'] as String?)?.trim().isEmpty == true
? null
: j['address_full'],
);
}
}