mirror of
https://github.com/dancojocaru2000/logic-circuits-simulator.git
synced 2025-02-22 17:19:36 +02:00
24 lines
660 B
Dart
24 lines
660 B
Dart
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
||
|
|
||
|
part 'projects.freezed.dart';
|
||
|
part 'projects.g.dart';
|
||
|
|
||
|
@freezed
|
||
|
class ProjectsIndex with _$ProjectsIndex {
|
||
|
const factory ProjectsIndex({
|
||
|
required List<ProjectEntry> projects,
|
||
|
}) = _ProjectsIndex;
|
||
|
|
||
|
factory ProjectsIndex.fromJson(Map<String, Object?> json) => _$ProjectsIndexFromJson(json);
|
||
|
}
|
||
|
|
||
|
@freezed
|
||
|
class ProjectEntry with _$ProjectEntry {
|
||
|
const factory ProjectEntry({
|
||
|
required DateTime lastUpdate,
|
||
|
required String projectName,
|
||
|
required String projectId,
|
||
|
}) = _ProjectEntry;
|
||
|
|
||
|
factory ProjectEntry.fromJson(Map<String, Object?> json) => _$ProjectEntryFromJson(json);
|
||
|
}
|