feat(wip): Update entities and adopt a proper repository workflow for trip "obtention"
This commit is contained in:
@@ -5,12 +5,17 @@ part 'trip.freezed.dart';
|
||||
part 'trip.g.dart';
|
||||
|
||||
|
||||
@Freezed(makeCollectionsUnmodifiable: false)
|
||||
@unfreezed
|
||||
abstract class Trip with _$Trip {
|
||||
|
||||
const factory Trip({
|
||||
factory Trip({
|
||||
required String uuid,
|
||||
// Duration totalTime,
|
||||
|
||||
/// total time in minutes
|
||||
int? totalTimeMinutes,
|
||||
|
||||
/// ordered list of landmarks in this trip
|
||||
required List<Landmark> landmarks,
|
||||
}) = _Trip;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user