feat(wip): Update entities and adopt a proper repository workflow for trip "obtention"
This commit is contained in:
@@ -12,9 +12,38 @@ abstract class Landmark with _$Landmark {
|
||||
required String name,
|
||||
required List<double> location,
|
||||
required LandmarkType type,
|
||||
required bool isSecondary,
|
||||
|
||||
required LandmarkDescription description,
|
||||
@JsonKey(name: 'is_secondary')
|
||||
bool? isSecondary,
|
||||
|
||||
/// Optional rich description object (may be null if API returns plain string)
|
||||
LandmarkDescription? description,
|
||||
|
||||
@JsonKey(name: 'name_en')
|
||||
String? nameEn,
|
||||
|
||||
@JsonKey(name: 'website_url')
|
||||
String? websiteUrl,
|
||||
|
||||
@JsonKey(name: 'image_url')
|
||||
String? imageUrl,
|
||||
|
||||
@JsonKey(name: 'attractiveness')
|
||||
int? attractiveness,
|
||||
|
||||
@JsonKey(name: 'n_tags')
|
||||
int? tagCount,
|
||||
|
||||
|
||||
|
||||
/// Duration at landmark in minutes
|
||||
@JsonKey(name: 'duration')
|
||||
int? durationMinutes,
|
||||
|
||||
bool? visited,
|
||||
|
||||
@JsonKey(name: 'time_to_reach_next')
|
||||
int? timeToReachNextMinutes,
|
||||
}) = _Landmark;
|
||||
|
||||
factory Landmark.fromJson(Map<String, Object?> json) => _$LandmarkFromJson(json);
|
||||
|
||||
Reference in New Issue
Block a user