2024-09-25 15:53:40 +04:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'news_dto.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
NewsDto _$NewsDtoFromJson(Map<String, dynamic> json) => NewsDto(
|
2024-10-06 23:20:02 +04:00
|
|
|
data: (json['articles'] as List<dynamic>?)
|
2024-09-25 19:28:26 +04:00
|
|
|
?.map((e) => NewAttributesDataDto.fromJson(e as Map<String, dynamic>))
|
2024-09-25 15:53:40 +04:00
|
|
|
.toList(),
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
NewAttributesDataDto _$NewAttributesDataDtoFromJson(
|
|
|
|
Map<String, dynamic> json) =>
|
|
|
|
NewAttributesDataDto(
|
|
|
|
title: json['title'] as String?,
|
2024-10-06 23:20:02 +04:00
|
|
|
description: json['description'] as String?,
|
|
|
|
imagelink: json['urlToImage'] as String?,
|
2024-09-25 15:53:40 +04:00
|
|
|
);
|