ocarina2/lib/api/subsonic/song.g.dart

37 lines
1.3 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'song.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Song _$SongFromJson(Map<String, dynamic> json) => Song(
id: json['id'] as String,
artistName: json['artist'] as String,
title: json['title'] as String,
albumName: json['album'] as String,
albumId: json['albumId'] as String,
artistId: json['artistId'] as String?,
duration: (json['duration'] as num).toInt(),
bitRate: (json['bitRate'] as num).toInt(),
contentType: json['contentType'] as String,
fileType: json['suffix'] as String,
coverArtId: json['coverArt'] as String,
trackNumber: (json['track'] as num?)?.toInt(),
);
Map<String, dynamic> _$SongToJson(Song instance) => <String, dynamic>{
'id': instance.id,
'artist': instance.artistName,
'artistId': instance.artistId,
'albumId': instance.albumId,
'title': instance.title,
'album': instance.albumName,
'track': instance.trackNumber,
'duration': instance.duration,
'bitRate': instance.bitRate,
'contentType': instance.contentType,
'suffix': instance.fileType,
'coverArt': instance.coverArtId,
};