pmu_kursach/lib/data/dtos/artists_dto.g.dart
2024-12-16 19:00:34 +04:00

38 lines
1.2 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'artists_dto.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
ArtistsDto _$ArtistsDtoFromJson(Map<String, dynamic> json) => ArtistsDto(
data: (json['data'] as List<dynamic>?)
?.map((e) => ArtistDataDto.fromJson(e as Map<String, dynamic>))
.toList(),
meta: json['meta'] == null
? null
: MetaDto.fromJson(json['meta'] as Map<String, dynamic>),
);
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(),
last: (json['last'] as num?)?.toInt(),
next: (json['next'] as num?)?.toInt(),
);
ArtistDataDto _$ArtistDataDtoFromJson(Map<String, dynamic> json) =>
ArtistDataDto(
json['id'] as String?,
json['name'] as String?,
json['image'] as String,
(json['year_streams'] as num).toInt(),
);