// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'playback.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

_PlaybackRequestPayload _$PlaybackRequestPayloadFromJson(
  Map<String, dynamic> json,
) => _PlaybackRequestPayload(
  itemId: json['itemId'] as String,
  itemType: json['itemType'] as String?,
  mediaSourceId: json['mediaSourceId'] as String?,
  startPositionTicks: (json['startPositionTicks'] as num?)?.toInt(),
  playFromStart: json['playFromStart'] as bool? ?? false,
);

Map<String, dynamic> _$PlaybackRequestPayloadToJson(
  _PlaybackRequestPayload instance,
) => <String, dynamic>{
  'itemId': instance.itemId,
  'itemType': ?instance.itemType,
  'mediaSourceId': ?instance.mediaSourceId,
  'startPositionTicks': ?instance.startPositionTicks,
  'playFromStart': instance.playFromStart,
};

_EmbySubtitleTrack _$EmbySubtitleTrackFromJson(Map<String, dynamic> json) =>
    _EmbySubtitleTrack(
      index: _intRequired(json['index']),
      title: json['title'] as String?,
      language: json['language'] as String?,
      isDefault: json['isDefault'] == null
          ? false
          : _boolOrFalse(json['isDefault']),
      isForced: json['isForced'] == null
          ? false
          : _boolOrFalse(json['isForced']),
      isExternal: json['isExternal'] == null
          ? false
          : _boolOrFalse(json['isExternal']),
      deliveryUrl: json['deliveryUrl'] as String?,
      codec: json['codec'] as String?,
    );

Map<String, dynamic> _$EmbySubtitleTrackToJson(_EmbySubtitleTrack instance) =>
    <String, dynamic>{
      'index': instance.index,
      'title': ?instance.title,
      'language': ?instance.language,
      'isDefault': instance.isDefault,
      'isForced': instance.isForced,
      'isExternal': instance.isExternal,
      'deliveryUrl': ?instance.deliveryUrl,
      'codec': ?instance.codec,
    };

_EmbyAudioTrack _$EmbyAudioTrackFromJson(Map<String, dynamic> json) =>
    _EmbyAudioTrack(
      index: _intRequired(json['index']),
      title: json['title'] as String?,
      language: json['language'] as String?,
      codec: json['codec'] as String?,
      channels: _intOrNull(json['channels']),
      displayTitle: json['displayTitle'] as String?,
      isDefault: json['isDefault'] == null
          ? false
          : _boolOrFalse(json['isDefault']),
    );

Map<String, dynamic> _$EmbyAudioTrackToJson(_EmbyAudioTrack instance) =>
    <String, dynamic>{
      'index': instance.index,
      'title': ?instance.title,
      'language': ?instance.language,
      'codec': ?instance.codec,
      'channels': ?instance.channels,
      'displayTitle': ?instance.displayTitle,
      'isDefault': instance.isDefault,
    };
