mirror of
https://github.com/dancojocaru2000/logic-circuits-simulator.git
synced 2025-02-23 01:29:36 +02:00
For now just the code, without UI that shows the simulation. However, the code works. Also added ground work for visual designer.
14 lines
414 B
Dart
14 lines
414 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
import 'package:logic_circuits_simulator/models.dart';
|
|
|
|
part 'project.freezed.dart';
|
|
part 'project.g.dart';
|
|
|
|
@freezed
|
|
class ProjectIndex with _$ProjectIndex {
|
|
const factory ProjectIndex({
|
|
required List<ComponentEntry> components,
|
|
}) = _ProjectIndex;
|
|
|
|
factory ProjectIndex.fromJson(Map<String, Object?> json) => _$ProjectIndexFromJson(json);
|
|
}
|