// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'landmark.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

_Landmark _$LandmarkFromJson(Map<String, dynamic> json) => _Landmark(
  uuid: json['uuid'] as String,
  name: json['name'] as String,
  location: (json['location'] as List<dynamic>)
      .map((e) => (e as num).toDouble())
      .toList(),
  type: LandmarkType.fromJson(json['type'] as Map<String, dynamic>),
  isSecondary: json['is_secondary'] as bool?,
  description: json['description'] == null
      ? null
      : LandmarkDescription.fromJson(
          json['description'] as Map<String, dynamic>,
        ),
  nameEn: json['name_en'] as String?,
  websiteUrl: json['website_url'] as String?,
  imageUrl: json['image_url'] as String?,
  attractiveness: (json['attractiveness'] as num?)?.toInt(),
  tagCount: (json['n_tags'] as num?)?.toInt(),
  durationMinutes: (json['duration'] as num?)?.toInt(),
  visited: json['visited'] as bool?,
  timeToReachNextMinutes: (json['time_to_reach_next'] as num?)?.toInt(),
);

Map<String, dynamic> _$LandmarkToJson(_Landmark instance) => <String, dynamic>{
  'uuid': instance.uuid,
  'name': instance.name,
  'location': instance.location,
  'type': instance.type,
  'is_secondary': instance.isSecondary,
  'description': instance.description,
  'name_en': instance.nameEn,
  'website_url': instance.websiteUrl,
  'image_url': instance.imageUrl,
  'attractiveness': instance.attractiveness,
  'n_tags': instance.tagCount,
  'duration': instance.durationMinutes,
  'visited': instance.visited,
  'time_to_reach_next': instance.timeToReachNextMinutes,
};
