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,
      );