31 lines
1.0 KiB
Dart
31 lines
1.0 KiB
Dart
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'news_dto.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// JsonSerializableGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
NewsDto _$NewsDtoFromJson(Map<String, dynamic> json) => NewsDto(
|
||
|
data: (json['data'] as List<dynamic>?)
|
||
|
?.map((e) => NewDataDto.fromJson(e as Map<String, dynamic>))
|
||
|
.toList(),
|
||
|
);
|
||
|
|
||
|
NewDataDto _$NewDataDtoFromJson(Map<String, dynamic> json) => NewDataDto(
|
||
|
id: json['id'] as String?,
|
||
|
type: json['type'] as String?,
|
||
|
attributes: json['attributes'] == null
|
||
|
? null
|
||
|
: NewAttributesDataDto.fromJson(
|
||
|
json['attributes'] as Map<String, dynamic>),
|
||
|
);
|
||
|
|
||
|
NewAttributesDataDto _$NewAttributesDataDtoFromJson(
|
||
|
Map<String, dynamic> json) =>
|
||
|
NewAttributesDataDto(
|
||
|
title: json['title'] as String?,
|
||
|
summary: json['summary'] as String?,
|
||
|
imagelink: json['image_link'] as String?,
|
||
|
);
|