DashManifest.fromJson constructor

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

Implementation

factory DashManifest.fromJson(Map<String, dynamic> json) {
  return DashManifest(
    manifestLayout: (json['manifestLayout'] as String?)?.toManifestLayout(),
    manifestName: json['manifestName'] as String?,
    minBufferTimeSeconds: json['minBufferTimeSeconds'] as int?,
    profile: (json['profile'] as String?)?.toProfile(),
    streamSelection: json['streamSelection'] != null
        ? StreamSelection.fromJson(
            json['streamSelection'] as Map<String, dynamic>)
        : null,
  );
}