subtracks/lib/models/support.g.dart
austinried f0f812e66a v2
2023-04-28 12:26:02 +09:00

83 lines
3.0 KiB
Dart

// 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,
};