2024-05-23 19:14:08 +02:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'album.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
Album _$AlbumFromJson(Map<String, dynamic> json) => Album(
|
|
|
|
id: json['id'] as String,
|
|
|
|
name: json['name'] as String,
|
|
|
|
coverArtId: json['coverArt'] as String,
|
2024-05-24 00:10:11 +02:00
|
|
|
playCount: (json['playCount'] as num?)?.toInt() ?? 0,
|
2024-05-23 19:14:08 +02:00
|
|
|
artistName: json['artist'] as String,
|
|
|
|
artistId: json['artistId'] as String,
|
2024-06-21 12:20:01 +02:00
|
|
|
year: (json['year'] as num?)?.toInt(),
|
2024-05-23 19:14:08 +02:00
|
|
|
songCount: (json['songCount'] as num).toInt(),
|
|
|
|
genres:
|
|
|
|
(json['genres'] as List<dynamic>).map((e) => e as String).toList(),
|
|
|
|
duration: (json['duration'] as num).toInt(),
|
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> _$AlbumToJson(Album instance) => <String, dynamic>{
|
|
|
|
'id': instance.id,
|
|
|
|
'name': instance.name,
|
2024-05-24 00:10:11 +02:00
|
|
|
'coverArt': instance.coverArtId,
|
2024-05-23 19:14:08 +02:00
|
|
|
'playCount': instance.playCount,
|
|
|
|
'artist': instance.artistName,
|
|
|
|
'artistId': instance.artistId,
|
|
|
|
'year': instance.year,
|
|
|
|
'songCount': instance.songCount,
|
|
|
|
'genres': instance.genres,
|
|
|
|
'duration': instance.duration,
|
|
|
|
};
|