TTVideoEngineUrlSource.fromJson constructor
TTVideoEngineUrlSource.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TTVideoEngineUrlSource.fromJson(Map<String, dynamic> json) => TTVideoEngineUrlSource(
urls: (json["urls"] == null || json["urls"] is! List) ? [] : List<String>.from(json["urls"]!.map((x) => x)),
cacheKey: json["cacheKey"],
vid: json["vid"],
urlExpiredTimes: (json["urlExpiredTimes"] == null || json["urlExpiredTimes"] is! List)
? []
: List<String>.from(json["urlExpiredTimes"]!.map((x) => x)),
isHDRSource: json["isHDRSource"],
);