JWPlayerConfiguration.fromMap constructor
JWPlayerConfiguration.fromMap(
- Map<String, dynamic> json
)
Implementation
factory JWPlayerConfiguration.fromMap(Map<String, dynamic> json) =>
JWPlayerConfiguration(
file: json["file"],
autostart: json["autostart"],
playlist: json["playlist"] == null
? null
: List<PlaylistItem>.from(
json["playlist"].map((x) => PlaylistItem.fromMap(x))),
tracks: json["tracks"] == null
? null
: List<Track>.from(json["tracks"].map((x) => Track.fromMap(x))),
sources: json["sources"] == null
? null
: List<Source>.from(json["sources"].map((x) => Source.fromMap(x))),
image: json["image"],
analytics: json["analytics"] == null
? null
: Analytics.fromMap(json["analytics"]),
related:
json["related"] == null ? null : Related.fromMap(json["related"]),
advertising: json["advertising"] == null
? null
: Advertising.fromMap(json["advertising"]),
);