chore(wip): upgrade dependencies, begin refactor
This commit is contained in:
15
frontend/lib/domain/entities/landmark_description.dart
Normal file
15
frontend/lib/domain/entities/landmark_description.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
part 'landmark_description.freezed.dart';
|
||||
part 'landmark_description.g.dart';
|
||||
|
||||
|
||||
@Freezed(makeCollectionsUnmodifiable: false)
|
||||
abstract class LandmarkDescription with _$LandmarkDescription {
|
||||
const factory LandmarkDescription({
|
||||
required String description,
|
||||
required List<String> tags,
|
||||
}) = _LandmarkDescription;
|
||||
|
||||
factory LandmarkDescription.fromJson(Map<String, Object?> json) => _$LandmarkDescriptionFromJson(json);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user