toMap method
Converts the ByteArkPlayerItem properties into a map representation.
Implementation
Map<String, dynamic> toMap() {
return {
'mediaId': mediaId,
'posterImage': posterImage,
'title': title,
'subtitle': subtitle,
'url': url,
'shareUrl': shareUrl,
'drm': drm?.toMap(),
};
}