Hls.fromJson constructor

Hls.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Hls.fromJson(Map<String, dynamic> json) {
  if (json["separate_av"] is bool) this.separateAv = json["separate_av"];
  if (json["default_cdn"] is String) this.defaultCdn = json["default_cdn"];
  if (json["cdns"] is Map)
    this.cdns = json["cdns"] == null ? null : Cdns1.fromJson(json["cdns"]);
  if (json["captions"] is String) this.captions = json["captions"];
}