16 lines
492 B
Dart
16 lines
492 B
Dart
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);
|
|
}
|
|
|