PatchbayRevealContainerWire.fromJson constructor

PatchbayRevealContainerWire.fromJson(
  1. Map<String, Object?> json, {
  2. String path = r'$',
})

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