throwErrorFromEvent method Null safety
- JanusEvent response
Implementation
static throwErrorFromEvent(JanusEvent response) {
if (response.plugindata?.data != null &&
(response.plugindata?.data as Map).containsKey('error')) {
throw JanusError.fromMap(response.plugindata?.data);
}
}