mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 23:21:59 +01:00
v2
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'support.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_$_QueueItemState _$$_QueueItemStateFromJson(Map<String, dynamic> json) =>
|
||||
_$_QueueItemState(
|
||||
id: json['id'] as String,
|
||||
contextType: $enumDecode(_$QueueContextTypeEnumMap, json['contextType']),
|
||||
contextId: json['contextId'] as String?,
|
||||
contextTitle: json['contextTitle'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$_QueueItemStateToJson(_$_QueueItemState instance) =>
|
||||
<String, dynamic>{
|
||||
'id': instance.id,
|
||||
'contextType': _$QueueContextTypeEnumMap[instance.contextType]!,
|
||||
'contextId': instance.contextId,
|
||||
'contextTitle': instance.contextTitle,
|
||||
};
|
||||
|
||||
const _$QueueContextTypeEnumMap = {
|
||||
QueueContextType.song: 'song',
|
||||
QueueContextType.album: 'album',
|
||||
QueueContextType.playlist: 'playlist',
|
||||
QueueContextType.library: 'library',
|
||||
QueueContextType.genre: 'genre',
|
||||
};
|
||||
|
||||
_$_MediaItemData _$$_MediaItemDataFromJson(Map<String, dynamic> json) =>
|
||||
_$_MediaItemData(
|
||||
sourceId: json['sourceId'] as int,
|
||||
albumId: json['albumId'] as String?,
|
||||
artCache:
|
||||
_$JsonConverterFromJson<Map<String, dynamic>, MediaItemArtCache>(
|
||||
json['artCache'], const MediaItemArtCacheConverter().fromJson),
|
||||
contextType: $enumDecode(_$QueueContextTypeEnumMap, json['contextType']),
|
||||
contextId: json['contextId'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$_MediaItemDataToJson(_$_MediaItemData instance) =>
|
||||
<String, dynamic>{
|
||||
'sourceId': instance.sourceId,
|
||||
'albumId': instance.albumId,
|
||||
'artCache':
|
||||
_$JsonConverterToJson<Map<String, dynamic>, MediaItemArtCache>(
|
||||
instance.artCache, const MediaItemArtCacheConverter().toJson),
|
||||
'contextType': _$QueueContextTypeEnumMap[instance.contextType]!,
|
||||
'contextId': instance.contextId,
|
||||
};
|
||||
|
||||
Value? _$JsonConverterFromJson<Json, Value>(
|
||||
Object? json,
|
||||
Value? Function(Json json) fromJson,
|
||||
) =>
|
||||
json == null ? null : fromJson(json as Json);
|
||||
|
||||
Json? _$JsonConverterToJson<Json, Value>(
|
||||
Value? value,
|
||||
Json? Function(Value value) toJson,
|
||||
) =>
|
||||
value == null ? null : toJson(value);
|
||||
|
||||
_$_MediaItemArtCache _$$_MediaItemArtCacheFromJson(Map<String, dynamic> json) =>
|
||||
_$_MediaItemArtCache(
|
||||
fullArtUri: Uri.parse(json['fullArtUri'] as String),
|
||||
fullArtCacheKey: json['fullArtCacheKey'] as String,
|
||||
thumbnailArtUri: Uri.parse(json['thumbnailArtUri'] as String),
|
||||
thumbnailArtCacheKey: json['thumbnailArtCacheKey'] as String,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$_MediaItemArtCacheToJson(
|
||||
_$_MediaItemArtCache instance) =>
|
||||
<String, dynamic>{
|
||||
'fullArtUri': instance.fullArtUri.toString(),
|
||||
'fullArtCacheKey': instance.fullArtCacheKey,
|
||||
'thumbnailArtUri': instance.thumbnailArtUri.toString(),
|
||||
'thumbnailArtCacheKey': instance.thumbnailArtCacheKey,
|
||||
};
|
||||
Reference in New Issue
Block a user