toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> json = {};
  json["connectRetryCount"] = connectRetryCount;
  json["connectRetryInterval"] = connectRetryInterval;
  json["timeout"] = timeout;
  json["headers"] = headers;
  json["playerType"] = playerType;
  json["enableAccurateSeek"] = enableAccurateSeek;
  json["autoRotate"] = autoRotate;
  json["smoothSwitchBitrate"] = smoothSwitchBitrate;
  json["cacheMp4ExtName"] = cacheMp4ExtName;
  json["progressInterval"] = progressInterval;
  json["maxBufferSize"] = maxBufferSize;
  json["maxPreloadSize"] = maxPreloadSize;
  json["firstStartPlayBufferTime"] = firstStartPlayBufferTime;
  json["nextStartPlayBufferTime"] = nextStartPlayBufferTime;
  json["overlayKey"] = overlayKey;
  json["overlayIv"] = overlayIv;
  json["extInfoMap"] = extInfoMap;
  json["enableRenderProcess"] = enableRenderProcess;
  json["preferredResolution"] = preferredResolution.toString();
  json["mediaType"] = mediaType.toString();
  json["encryptedMp4Level"] = encryptedMp4Level.toString();
  json["preferAudioTrack"] = preferAudioTrack?.toString();
  return json;
}