StreamingItem.fromMap constructor

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

Implementation

factory StreamingItem.fromMap(Map<String, dynamic> json) => StreamingItem(
      id: json["id"],
      type: json["type"],
      description: json["description"],
      metadata: json["metadata"],
      enabled: json["enabled"],
      media: json["media"] == null ? [] : (json["media"] as List).map((x) => Media.fromMap(x)).toList(),
    );