ComputationTopology.fromJson constructor

ComputationTopology.fromJson(
  1. Map _json
)

Implementation

ComputationTopology.fromJson(core.Map _json)
    : this(
        computationId: _json.containsKey('computationId')
            ? _json['computationId'] as core.String
            : null,
        inputs: _json.containsKey('inputs')
            ? (_json['inputs'] as core.List)
                .map((value) => StreamLocation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        keyRanges: _json.containsKey('keyRanges')
            ? (_json['keyRanges'] as core.List)
                .map((value) => KeyRangeLocation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        outputs: _json.containsKey('outputs')
            ? (_json['outputs'] as core.List)
                .map((value) => StreamLocation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        stateFamilies: _json.containsKey('stateFamilies')
            ? (_json['stateFamilies'] as core.List)
                .map((value) => StateFamilyConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        systemStageName: _json.containsKey('systemStageName')
            ? _json['systemStageName'] as core.String
            : null,
      );