SeqMapTask.fromJson constructor

SeqMapTask.fromJson(
  1. Map _json
)

Implementation

SeqMapTask.fromJson(core.Map _json)
    : this(
        inputs: _json.containsKey('inputs')
            ? (_json['inputs'] as core.List)
                .map<SideInputInfo>((value) => SideInputInfo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        outputInfos: _json.containsKey('outputInfos')
            ? (_json['outputInfos'] as core.List)
                .map<SeqMapTaskOutputInfo>((value) =>
                    SeqMapTaskOutputInfo.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        stageName: _json.containsKey('stageName')
            ? _json['stageName'] as core.String
            : null,
        systemName: _json.containsKey('systemName')
            ? _json['systemName'] as core.String
            : null,
        userFn: _json.containsKey('userFn')
            ? (_json['userFn'] as core.Map<core.String, core.dynamic>).map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.Object,
                ),
              )
            : null,
      );