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(),
|
2024-12-20 11:40:46 +04:00
|
|
|
// meta: json['meta'] == null
|
|
|
|
// ? null
|
|
|
|
// : MetaDto.fromJson(json['meta'] as Map<String, dynamic>),
|
2024-09-25 15:53:40 +04:00
|
|
|
);
|
|
|
|
|
|
|
|
NewAttributesDataDto _$NewAttributesDataDtoFromJson(
|
|
|
|
Map<String, dynamic> json) =>
|
|
|
|
NewAttributesDataDto(
|
2024-10-15 23:16:39 +04:00
|
|
|
id: json['url'] as String?,
|
2024-09-25 15:53:40 +04:00
|
|
|
title: json['title'] as String?,
|
2024-10-06 23:20:02 +04:00
|
|
|
description: json['description'] as String?,
|
|
|
|
imagelink: json['urlToImage'] as String?,
|
2024-12-20 11:40:46 +04:00
|
|
|
date: json['publishedAt'] as String,
|
2024-09-25 15:53:40 +04:00
|
|
|
);
|
2024-10-07 19:36:49 +04:00
|
|
|
|
2024-12-20 11:40:46 +04:00
|
|
|
// MetaDto _$MetaDtoFromJson(Map<String, dynamic> json) => MetaDto(
|
|
|
|
// pagination: json['pagination'] == null
|
|
|
|
// ? null
|
|
|
|
// : PaginationDto.fromJson(json['pagination'] as Map<String, dynamic>),
|
|
|
|
// );
|
|
|
|
//
|
|
|
|
// PaginationDto _$PaginationDtoFromJson(Map<String, dynamic> json) =>
|
|
|
|
// PaginationDto(
|
|
|
|
// current: (json['current'] as num?)?.toInt(),
|
|
|
|
// next: (json['next'] as num?)?.toInt(),
|
|
|
|
// last: (json['last'] as num?)?.toInt(),
|
|
|
|
// );
|