PatchbayRevealContainerWire.fromJson constructor
Decodes a strict JSON object at path.
Implementation
factory PatchbayRevealContainerWire.fromJson(
Map<String, Object?> json, {
String path = r'$',
}) {
_wireKeys(json, const <String>{
'nodeId',
'generation',
'steps',
'direction',
'extentGrowthSteps',
}, path);
return PatchbayRevealContainerWire(
nodeId: _wireInt(json['nodeId'], '$path.nodeId'),
generation: _wireInt(json['generation'], '$path.generation'),
steps: _wireInt(json['steps'], '$path.steps'),
direction: PatchbayRevealDirectionWire.fromJson(
json['direction'],
path: '$path.direction',
),
extentGrowthSteps: _wireInt(
json['extentGrowthSteps'],
'$path.extentGrowthSteps',
),
);
}