toJson method
Implementation
@override
Map<String, dynamic> toJson() => {
'vid': vid,
'duration': duration,
'resolution': resolution?.idx,
'playInfoList': playInfoList == null
? []
: List<dynamic>.from(playInfoList!.map((x) => x.toJson())),
'sourceType': sourceType.index,
'jsonModel': jsonModel,
};