Yimaru-Mobile/lib/models/module.dart
BisratHailu 35baae8d92 - fix(learn): Modify overall learn hierarchy.
- fix(learn): Modify learn path flow according to the new hierarchy.
- add(learn): Add additionl screens for the new hierarchy levels.
2026-04-18 22:04:56 +03:00

39 lines
703 B
Dart

import 'package:json_annotation/json_annotation.dart';
part 'module.g.dart';
@JsonSerializable()
class Module {
final int? id;
final String? title;
final String? description;
@JsonKey(name: 'icon_url')
final String? iconUrl;
@JsonKey(name: 'level_id')
final int? levelId;
@JsonKey(name: 'is_active')
final bool? isActive;
@JsonKey(name: 'display_order')
final int? displayOrder;
const Module({
this.id,
this.title,
this.iconUrl,
this.levelId,
this.isActive,
this.description,
this.displayOrder,
});
factory Module.fromJson(Map<String, dynamic> json) => _$ModuleFromJson(json);
Map<String, dynamic> toJson() => _$ModuleToJson(this);
}