TTVideoEngineLocalServerTaskInfo.fromJson constructor

TTVideoEngineLocalServerTaskInfo.fromJson(
  1. Map json
)

Implementation

factory TTVideoEngineLocalServerTaskInfo.fromJson(Map<dynamic, dynamic> json) {
  return TTVideoEngineLocalServerTaskInfo(
    key: json['key'],
    videoId: json['videoId'],
    resolution: TTVideoEngineResolutionType.values[json['resolution'] as int],
    localFilePath: json['localFilePath'],
    mediaSize: json['mediaSize'],
    cacheSizeFromZero: json['cacheSizeFromZero'],
    decryptionKey: json['decryptionKey'],
    preloadSize: json['preloadSize'],
    taskType: TTVideoEngineDataLoaderTaskType.values[json['taskType'] as int],
  );
}