MuxStream.fromJson constructor

MuxStream.fromJson(
  1. Map json_
)

Implementation

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