34 lines
1.2 KiB
Dart
34 lines
1.2 KiB
Dart
// 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,
|
|
playCount: (json['playCount'] as num).toInt(),
|
|
artistName: json['artist'] as String,
|
|
artistId: json['artistId'] as String,
|
|
year: (json['year'] as num).toInt(),
|
|
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,
|
|
'coverArt': instance._coverArtId,
|
|
'playCount': instance.playCount,
|
|
'artist': instance.artistName,
|
|
'artistId': instance.artistId,
|
|
'year': instance.year,
|
|
'songCount': instance.songCount,
|
|
'genres': instance.genres,
|
|
'duration': instance.duration,
|
|
};
|