import 'package:anyway/domain/entities/landmark.dart';
import 'package:freezed_annotation/freezed_annotation.dart';

part 'trip.freezed.dart';
part 'trip.g.dart';


@unfreezed
abstract class Trip with _$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;

  factory Trip.fromJson(Map<String, Object?> json) => _$TripFromJson(json);

}
