PatchbayRevealRequestWire.fromJson constructor
Decodes a strict JSON object at path.
Implementation
factory PatchbayRevealRequestWire.fromJson(
Map<String, Object?> json, {
String path = r'$',
}) {
_wireKeys(json, const <String>{
'identifier',
'container',
'direction',
'maxSteps',
'timeoutMs',
}, path);
return PatchbayRevealRequestWire(
identifier: _wireString(json['identifier'], '$path.identifier'),
container: json['container'] == null
? null
: _wireString(json['container'], '$path.container'),
direction: json['direction'] == null
? null
: PatchbayRevealDirectionWire.fromJson(
json['direction'],
path: '$path.direction',
),
maxSteps: json['maxSteps'] == null
? null
: _wireInt(json['maxSteps'], '$path.maxSteps'),
timeoutMs: json['timeoutMs'] == null
? null
: _wireInt(json['timeoutMs'], '$path.timeoutMs'),
);
}