PlaylistItemModel.fromJson constructor
PlaylistItemModel.fromJson(
- Map<String, dynamic> json
)
Implementation
PlaylistItemModel.fromJson(Map<String, dynamic> json) {
if (json["id"] is int) this.id = json["id"];
if (json["label"] is String) this.label = json["label"];
if (json["value"] is String) this.value = json["value"];
if (json["duration"] is int) this.duration = json["duration"];
if (json["itemOrder"] is int) this.itemOrder = json["itemOrder"];
if (json["playlistId"] is int) this.playlistId = json["playlistId"];
if (json["audio"] is int) this.audio = json["audio"];
if (json["contentType"] is Map)
this.contentType = json["contentType"] == null
? null
: ContentType.fromJson(json["contentType"]);
}