fromJson static method
Decodes a value at path, rejecting unknown values.
Implementation
static PatchbayLogBatchOutcomeWire fromJson(
Object? value, {
String path = r'$',
}) {
final wire = _wireString(value, path);
for (final candidate in values) {
if (candidate.name == wire) return candidate;
}
throw FormatException(
'$path has unknown PatchbayLogBatchOutcomeWire: $wire',
);
}