MuxStream.fromJson constructor

MuxStream.fromJson(
  1. Map json_
)

Implementation

MuxStream.fromJson(core.Map json_)
  : this(
      container: json_['container'] as core.String?,
      elementaryStreams: (json_['elementaryStreams'] as core.List?)
          ?.map((value) => value as core.String)
          .toList(),
      encryptionId: json_['encryptionId'] as core.String?,
      fileName: json_['fileName'] as core.String?,
      fmp4: json_.containsKey('fmp4')
          ? Fmp4Config.fromJson(
              json_['fmp4'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      key: json_['key'] as core.String?,
      segmentSettings: json_.containsKey('segmentSettings')
          ? SegmentSettings.fromJson(
              json_['segmentSettings'] as core.Map<core.String, core.dynamic>,
            )
          : null,
    );