// GENERATED CODE - DO NOT MODIFY BY HAND part of 'video_player_settings.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** _$VideoPlayerSettingsModelImpl _$$VideoPlayerSettingsModelImplFromJson( Map json) => _$VideoPlayerSettingsModelImpl( screenBrightness: (json['screenBrightness'] as num?)?.toDouble(), videoFit: $enumDecodeNullable(_$BoxFitEnumMap, json['videoFit']) ?? BoxFit.contain, fillScreen: json['fillScreen'] as bool? ?? false, hardwareAccel: json['hardwareAccel'] as bool? ?? true, useLibass: json['useLibass'] as bool? ?? false, playerOptions: $enumDecodeNullable(_$PlayerOptionsEnumMap, json['playerOptions']), internalVolume: (json['internalVolume'] as num?)?.toDouble() ?? 100, allowedOrientations: (json['allowedOrientations'] as List?) ?.map((e) => $enumDecode(_$DeviceOrientationEnumMap, e)) .toSet(), nextVideoType: $enumDecodeNullable(_$AutoNextTypeEnumMap, json['nextVideoType']) ?? AutoNextType.smart, audioDevice: json['audioDevice'] as String?, ); Map _$$VideoPlayerSettingsModelImplToJson( _$VideoPlayerSettingsModelImpl instance) => { 'screenBrightness': instance.screenBrightness, 'videoFit': _$BoxFitEnumMap[instance.videoFit]!, 'fillScreen': instance.fillScreen, 'hardwareAccel': instance.hardwareAccel, 'useLibass': instance.useLibass, 'playerOptions': _$PlayerOptionsEnumMap[instance.playerOptions], 'internalVolume': instance.internalVolume, 'allowedOrientations': instance.allowedOrientations ?.map((e) => _$DeviceOrientationEnumMap[e]!) .toList(), 'nextVideoType': _$AutoNextTypeEnumMap[instance.nextVideoType]!, 'audioDevice': instance.audioDevice, }; const _$BoxFitEnumMap = { BoxFit.fill: 'fill', BoxFit.contain: 'contain', BoxFit.cover: 'cover', BoxFit.fitWidth: 'fitWidth', BoxFit.fitHeight: 'fitHeight', BoxFit.none: 'none', BoxFit.scaleDown: 'scaleDown', }; const _$PlayerOptionsEnumMap = { PlayerOptions.libMDK: 'libMDK', PlayerOptions.libMPV: 'libMPV', }; const _$DeviceOrientationEnumMap = { DeviceOrientation.portraitUp: 'portraitUp', DeviceOrientation.landscapeLeft: 'landscapeLeft', DeviceOrientation.portraitDown: 'portraitDown', DeviceOrientation.landscapeRight: 'landscapeRight', }; const _$AutoNextTypeEnumMap = { AutoNextType.off: 'off', AutoNextType.smart: 'smart', AutoNextType.static: 'static', };