pmu/lib/data/dtos/PlaceDTO.g.dart
2024-11-27 12:33:41 +04:00

22 lines
791 B
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'PlaceDTO.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
PlacesDto _$PlacesDtoFromJson(Map<String, dynamic> json) => PlacesDto(
data: (json['data'] as List<dynamic>?)
?.map((e) => PlaceDataDto.fromJson(e as Map<String, dynamic>))
.toList(),
);
PlaceDataDto _$PlaceDataDtoFromJson(Map<String, dynamic> json) => PlaceDataDto(
id: (json['id'] as num?)?.toInt(),
name: json['name'] as String?,
yearBuilt: (json['yearBuilt'] as num?)?.toInt(),
description: json['description'] as String?,
imageData: json['imageData'] as String?,
);