Mobiles_programming/lib/data/dto/games_dto.g.dart

22 lines
725 B
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'games_dto.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
GamesDto _$GamesDtoFromJson(Map<String, dynamic> json) => GamesDto(
data: (json['results'] as List<dynamic>?)
?.map((e) => GameDto.fromJson(e as Map<String, dynamic>))
.toList(),
);
GameDto _$GameDtoFromJson(Map<String, dynamic> json) => GameDto(
(json['id'] as num?)?.toInt(),
json['name'] as String?,
json['description'] as String?,
json['background_image'] as String?,
json['released'] as String?,
);