TTMasterPlaylist.fromJson constructor

TTMasterPlaylist.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory TTMasterPlaylist.fromJson(Map<String, dynamic> json) => TTMasterPlaylist(
      renditions: json["renditions"] == null
          ? []
          : List<TTMasterRendition>.from(json["renditions"]!.map((x) => TTMasterRendition.fromJson(x))),
      variantStreams: json["variantStreams"] == null
          ? []
          : List<TTMasterVariantStream>.from(json["variantStreams"]!.map((x) => TTMasterVariantStream.fromJson(x))),
    );