chore(wip): upgrade dependencies, begin refactor
This commit is contained in:
19
frontend/lib/domain/entities/trip.dart
Normal file
19
frontend/lib/domain/entities/trip.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
import 'package:anyway/domain/entities/landmark.dart';
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'trip.freezed.dart';
|
||||
part 'trip.g.dart';
|
||||
|
||||
|
||||
@Freezed(makeCollectionsUnmodifiable: false)
|
||||
abstract class Trip with _$Trip {
|
||||
|
||||
const factory Trip({
|
||||
required String uuid,
|
||||
// Duration totalTime,
|
||||
required List<Landmark> landmarks,
|
||||
}) = _Trip;
|
||||
|
||||
factory Trip.fromJson(Map<String, Object?> json) => _$TripFromJson(json);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user