chore(wip): upgrade dependencies, begin refactor
This commit is contained in:
21
frontend/lib/domain/entities/landmark.dart
Normal file
21
frontend/lib/domain/entities/landmark.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
import 'package:anyway/domain/entities/landmark_type.dart';
|
||||
import 'package:anyway/domain/entities/landmark_description.dart';
|
||||
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
part 'landmark.freezed.dart';
|
||||
part 'landmark.g.dart';
|
||||
|
||||
@unfreezed
|
||||
abstract class Landmark with _$Landmark {
|
||||
factory Landmark({
|
||||
required String uuid,
|
||||
required String name,
|
||||
required List<double> location,
|
||||
required LandmarkType type,
|
||||
required bool isSecondary,
|
||||
|
||||
required LandmarkDescription description,
|
||||
}) = _Landmark;
|
||||
|
||||
factory Landmark.fromJson(Map<String, Object?> json) => _$LandmarkFromJson(json);
|
||||
}
|
||||
Reference in New Issue
Block a user