ParallelInstruction.fromJson constructor

ParallelInstruction.fromJson(
  1. Map _json
)

Implementation

ParallelInstruction.fromJson(core.Map _json)
    : this(
        flatten: _json.containsKey('flatten')
            ? FlattenInstruction.fromJson(
                _json['flatten'] as core.Map<core.String, core.dynamic>)
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        originalName: _json.containsKey('originalName')
            ? _json['originalName'] as core.String
            : null,
        outputs: _json.containsKey('outputs')
            ? (_json['outputs'] as core.List)
                .map((value) => InstructionOutput.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        parDo: _json.containsKey('parDo')
            ? ParDoInstruction.fromJson(
                _json['parDo'] as core.Map<core.String, core.dynamic>)
            : null,
        partialGroupByKey: _json.containsKey('partialGroupByKey')
            ? PartialGroupByKeyInstruction.fromJson(_json['partialGroupByKey']
                as core.Map<core.String, core.dynamic>)
            : null,
        read: _json.containsKey('read')
            ? ReadInstruction.fromJson(
                _json['read'] as core.Map<core.String, core.dynamic>)
            : null,
        systemName: _json.containsKey('systemName')
            ? _json['systemName'] as core.String
            : null,
        write: _json.containsKey('write')
            ? WriteInstruction.fromJson(
                _json['write'] as core.Map<core.String, core.dynamic>)
            : null,
      );