toJson method

  1. @override
Map<String, dynamic> toJson()
override

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,
      };