You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
757 B
25 lines
757 B
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'player_options.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
PlayerOptions _$PlayerOptionsFromJson(Map<String, dynamic> json) =>
|
|
PlayerOptions(
|
|
$enumDecode(_$RepeatModeEnumMap, json['repeat']),
|
|
isShuffling: json['shuffle'] as bool,
|
|
);
|
|
|
|
Map<String, dynamic> _$PlayerOptionsToJson(PlayerOptions instance) =>
|
|
<String, dynamic>{
|
|
'shuffle': instance.isShuffling,
|
|
'repeat': _$RepeatModeEnumMap[instance.repeatMode]!,
|
|
};
|
|
|
|
const _$RepeatModeEnumMap = {
|
|
RepeatMode.off: 0,
|
|
RepeatMode.track: 1,
|
|
RepeatMode.context: 2,
|
|
};
|
|
|