PatchbaySnapshotWaitWire.fromJson constructor
Decodes a strict JSON object at path.
Implementation
factory PatchbaySnapshotWaitWire.fromJson(
Map<String, Object?> json, {
String path = r'$',
}) {
_wireKeys(json, const <String>{
'outcome',
'condition',
'timeoutMs',
'elapsedMs',
'pollIntervalMs',
'polls',
}, path);
return PatchbaySnapshotWaitWire(
outcome: _wireString(json['outcome'], '$path.outcome'),
condition: PatchbaySnapshotConditionWire.fromJson(
json['condition'],
path: '$path.condition',
),
timeoutMs: _wireInt(json['timeoutMs'], '$path.timeoutMs'),
elapsedMs: _wireInt(json['elapsedMs'], '$path.elapsedMs'),
pollIntervalMs: _wireInt(json['pollIntervalMs'], '$path.pollIntervalMs'),
polls: _wireInt(json['polls'], '$path.polls'),
);
}