fromJson static method
Decodes a value at path, rejecting unknown values.
Implementation
static PatchbaySnapshotMissWire 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 PatchbaySnapshotMissWire: $wire');
}