JobConfig.fromJson constructor
JobConfig.fromJson(
- Map _json
Implementation
JobConfig.fromJson(core.Map _json)
: this(
adBreaks: _json.containsKey('adBreaks')
? (_json['adBreaks'] as core.List)
.map<AdBreak>((value) => AdBreak.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
editList: _json.containsKey('editList')
? (_json['editList'] as core.List)
.map<EditAtom>((value) => EditAtom.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
elementaryStreams: _json.containsKey('elementaryStreams')
? (_json['elementaryStreams'] as core.List)
.map<ElementaryStream>((value) => ElementaryStream.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
inputs: _json.containsKey('inputs')
? (_json['inputs'] as core.List)
.map<Input>((value) => Input.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
manifests: _json.containsKey('manifests')
? (_json['manifests'] as core.List)
.map<Manifest>((value) => Manifest.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
muxStreams: _json.containsKey('muxStreams')
? (_json['muxStreams'] as core.List)
.map<MuxStream>((value) => MuxStream.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
output: _json.containsKey('output')
? Output.fromJson(
_json['output'] as core.Map<core.String, core.dynamic>)
: null,
overlays: _json.containsKey('overlays')
? (_json['overlays'] as core.List)
.map<Overlay>((value) => Overlay.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
pubsubDestination: _json.containsKey('pubsubDestination')
? PubsubDestination.fromJson(_json['pubsubDestination']
as core.Map<core.String, core.dynamic>)
: null,
spriteSheets: _json.containsKey('spriteSheets')
? (_json['spriteSheets'] as core.List)
.map<SpriteSheet>((value) => SpriteSheet.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);