Yimaru-Mobile/lib/models/course.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

46 lines
862 B
Dart

import 'package:json_annotation/json_annotation.dart';
part 'course.g.dart';
@JsonSerializable()
class Course {
final int? id;
final String? title;
final String? thumbnail;
final String? description;
@JsonKey(name: 'is_active')
final bool? isActive;
@JsonKey(name: 'category_id')
final int? categoryId;
@JsonKey(name: 'total_count')
final int? totalCount;
@JsonKey(name: 'intro_video_url')
final String? introVideoUrl;
@JsonKey(name: 'sub_category_id')
final int? subCategoryId;
const Course({
this.id,
this.title,
this.isActive,
this.thumbnail,
this.totalCount,
this.categoryId,
this.description,
this.introVideoUrl,
this.subCategoryId,
});
factory Course.fromJson(Map<String, dynamic> json) => _$CourseFromJson(json);
Map<String, dynamic> toJson() => _$CourseToJson(this);
}