PatchbayInvocationWire.fromJson constructor
Decodes a strict JSON object at path.
Implementation
factory PatchbayInvocationWire.fromJson(
Map<String, Object?> json, {
String path = r'$',
}) {
_wireKeys(json, const <String>{
'schemaVersion',
'requestId',
'admission',
'payload',
'notice',
'jobId',
'rejection',
}, path);
return PatchbayInvocationWire(
schemaVersion: _wireInt(json['schemaVersion'], '$path.schemaVersion'),
requestId: _wireString(json['requestId'], '$path.requestId'),
admission: PatchbayAdmissionWire.fromJson(
json['admission'],
path: '$path.admission',
),
payload: _wireJsonObject(json['payload'], '$path.payload'),
notice: json['notice'] == null
? null
: _wireString(json['notice'], '$path.notice'),
jobId: json['jobId'] == null
? null
: _wireString(json['jobId'], '$path.jobId'),
rejection: json['rejection'] == null
? null
: PatchbayRejectionWire.fromJson(
_wireMap(json['rejection'], '$path.rejection'),
path: '$path.rejection',
),
);
}