20 lines
454 B
Dart
20 lines
454 B
Dart
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);
|
|
|
|
}
|