SideInputInfo.fromJson constructor

SideInputInfo.fromJson(
  1. Map _json
)

Implementation

SideInputInfo.fromJson(core.Map _json)
    : this(
        kind: _json.containsKey('kind')
            ? (_json['kind'] as core.Map<core.String, core.dynamic>).map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.Object,
                ),
              )
            : null,
        sources: _json.containsKey('sources')
            ? (_json['sources'] as core.List)
                .map<Source>((value) => Source.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        tag: _json.containsKey('tag') ? _json['tag'] as core.String : null,
      );