Dash.fromJson constructor
Implementation
Dash.fromJson(Map<String, dynamic> json) {
if (json["streams_avc"] is List) {
streamsAvc = json["streams_avc"] == null
? null
: (json["streams_avc"] as List)
.map((e) => StreamsAvc.fromJson(e))
.toList();
}
if (json["cdns"] is Map) {
cdns = json["cdns"] == null ? null : Cdns.fromJson(json["cdns"]);
}
if (json["streams"] is List) {
streams = json["streams"] == null
? null
: (json["streams"] as List).map((e) => Streams.fromJson(e)).toList();
}
if (json["streams_av1"] is List) {
streamsAv1 = json["streams_av1"] == null
? null
: (json["streams_av1"] as List)
.map((e) => StreamsAv1.fromJson(e))
.toList();
}
if (json["separate_av"] is bool) separateAv = json["separate_av"];
if (json["default_cdn"] is String) defaultCdn = json["default_cdn"];
}