toMap method
Converts the player configuration to a map for easier processing.
Implementation
Map<String, dynamic> toMap() {
return {
'autoPlay': autoPlay,
'control': control,
'seekButtons': seekButtons,
'seekTime': seekTime,
'playerItem': playerItem?.toMap(),
'fullScreenButton': fullScreenButton,
'settingButton': settingButton,
'lighthouseSetting': lighthouseSetting?.toMap(),
'adsSettings': adsSettings?.toMap(),
};
}