TTVideoEngineVidSource.fromJson constructor
TTVideoEngineVidSource.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TTVideoEngineVidSource.fromJson(Map<String, dynamic> json) => TTVideoEngineVidSource(
vid: json["vid"],
playAuthToken: json["playAuthToken"],
resolution: json["resolution"] == null
? TTVideoEngineResolutionType.TTVideoEngineResolutionTypeUnknown
: TTVideoEngineResolutionType.values[json["resolution"]],
drmLicenseAuthToken: json["drmLicenseAuthToken"],
certData: json["certData"],
);