forType static method
The schema for type; throws ArgumentError for unknown types.
Implementation
static Map<String, Object?> forType(String type) {
final schema = _schemas[type];
if (schema == null) {
throw ArgumentError.value(
type,
'type',
'unknown ZAP message type (expected one of '
'${_schemas.keys.join(', ')})',
);
}
return schema;
}