PlaylistItem.fromMap constructor

PlaylistItem.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory PlaylistItem.fromMap(Map<String, dynamic> json) => PlaylistItem(
      sources: json["sources"] == null
          ? null
          : List<Source>.from(json["sources"].map((x) => Source.fromMap(x))),
      image: json["image"],
      title: json["title"],
      adschedule: json["adschedule"],
      tracks: json["tracks"] == null
          ? null
          : List<Track>.from(json["tracks"].map((x) => Track.fromMap(x))),
      file: json["file"],
      description: json["description"],
    );