ElementaryStream.fromJson constructor

ElementaryStream.fromJson(
  1. Map _json
)

Implementation

ElementaryStream.fromJson(core.Map _json)
    : this(
        audioStream: _json.containsKey('audioStream')
            ? AudioStream.fromJson(
                _json['audioStream'] as core.Map<core.String, core.dynamic>)
            : null,
        key: _json.containsKey('key') ? _json['key'] as core.String : null,
        textStream: _json.containsKey('textStream')
            ? TextStream.fromJson(
                _json['textStream'] as core.Map<core.String, core.dynamic>)
            : null,
        videoStream: _json.containsKey('videoStream')
            ? VideoStream.fromJson(
                _json['videoStream'] as core.Map<core.String, core.dynamic>)
            : null,
      );