toJson method
Implementation
@override
Map<String, dynamic> toJson() => {
'vid': vid,
'playAuthToken': playAuthToken,
'resolution' : resolution == null ? TTVideoEngineResolutionType.TTVideoEngineResolutionTypeUnknown.idx : resolution?.idx,
'isDash': isDash,
'isHLS': isHLS,
'encodeType': encodeType.index,
'sourceType': sourceType.index,
};