TopologyConfig.fromJson constructor
TopologyConfig.fromJson(
- Map json_
Implementation
TopologyConfig.fromJson(core.Map json_)
: this(
computations: json_.containsKey('computations')
? (json_['computations'] as core.List)
.map((value) => ComputationTopology.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
dataDiskAssignments: json_.containsKey('dataDiskAssignments')
? (json_['dataDiskAssignments'] as core.List)
.map((value) => DataDiskAssignment.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
forwardingKeyBits: json_.containsKey('forwardingKeyBits')
? json_['forwardingKeyBits'] as core.int
: null,
persistentStateVersion: json_.containsKey('persistentStateVersion')
? json_['persistentStateVersion'] as core.int
: null,
userStageToComputationNameMap:
json_.containsKey('userStageToComputationNameMap')
? (json_['userStageToComputationNameMap']
as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
);