mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
56 lines
2.2 KiB
Dart
56 lines
2.2 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'connect.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_$WebSocketLoadEventDataPlaylistImpl
|
|
_$$WebSocketLoadEventDataPlaylistImplFromJson(Map json) =>
|
|
_$WebSocketLoadEventDataPlaylistImpl(
|
|
tracks: (json['tracks'] as List<dynamic>)
|
|
.map((e) => SpotubeFullTrackObject.fromJson(
|
|
Map<String, dynamic>.from(e as Map)))
|
|
.toList(),
|
|
collection: json['collection'] == null
|
|
? null
|
|
: SpotubeSimplePlaylistObject.fromJson(
|
|
Map<String, dynamic>.from(json['collection'] as Map)),
|
|
initialIndex: (json['initialIndex'] as num?)?.toInt(),
|
|
$type: json['runtimeType'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> _$$WebSocketLoadEventDataPlaylistImplToJson(
|
|
_$WebSocketLoadEventDataPlaylistImpl instance) =>
|
|
<String, dynamic>{
|
|
'tracks': instance.tracks.map((e) => e.toJson()).toList(),
|
|
'collection': instance.collection?.toJson(),
|
|
'initialIndex': instance.initialIndex,
|
|
'runtimeType': instance.$type,
|
|
};
|
|
|
|
_$WebSocketLoadEventDataAlbumImpl _$$WebSocketLoadEventDataAlbumImplFromJson(
|
|
Map json) =>
|
|
_$WebSocketLoadEventDataAlbumImpl(
|
|
tracks: (json['tracks'] as List<dynamic>)
|
|
.map((e) => SpotubeFullTrackObject.fromJson(
|
|
Map<String, dynamic>.from(e as Map)))
|
|
.toList(),
|
|
collection: json['collection'] == null
|
|
? null
|
|
: SpotubeSimpleAlbumObject.fromJson(
|
|
Map<String, dynamic>.from(json['collection'] as Map)),
|
|
initialIndex: (json['initialIndex'] as num?)?.toInt(),
|
|
$type: json['runtimeType'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> _$$WebSocketLoadEventDataAlbumImplToJson(
|
|
_$WebSocketLoadEventDataAlbumImpl instance) =>
|
|
<String, dynamic>{
|
|
'tracks': instance.tracks.map((e) => e.toJson()).toList(),
|
|
'collection': instance.collection?.toJson(),
|
|
'initialIndex': instance.initialIndex,
|
|
'runtimeType': instance.$type,
|
|
};
|