PatchbayNavigationResultWire.fromJson constructor
Decodes a strict JSON object at path.
Implementation
factory PatchbayNavigationResultWire.fromJson(
Map<String, Object?> json, {
String path = r'$',
}) {
_wireKeys(json, const <String>{
'outcome',
'source',
'operation',
'requestedDestinationId',
'destinationId',
'beforeNavigationRevision',
'afterNavigationRevision',
'frameRevision',
}, path);
return PatchbayNavigationResultWire(
outcome: _wireString(json['outcome'], '$path.outcome'),
source: PatchbayFactSourceWire.fromJson(
json['source'],
path: '$path.source',
),
operation: PatchbayNavigationOperationWire.fromJson(
json['operation'],
path: '$path.operation',
),
requestedDestinationId: json['requestedDestinationId'] == null
? null
: _wireString(
json['requestedDestinationId'],
'$path.requestedDestinationId',
),
destinationId: _wireString(json['destinationId'], '$path.destinationId'),
beforeNavigationRevision: _wireInt(
json['beforeNavigationRevision'],
'$path.beforeNavigationRevision',
),
afterNavigationRevision: _wireInt(
json['afterNavigationRevision'],
'$path.afterNavigationRevision',
),
frameRevision: _wireInt(json['frameRevision'], '$path.frameRevision'),
);
}