tryParse static method

DevToolsExtensionEvent? tryParse(
  1. Object data
)

Implementation

static DevToolsExtensionEvent? tryParse(Object data) {
  try {
    final dataAsMap = (data as Map).cast<String, Object?>();
    return DevToolsExtensionEvent.parse(dataAsMap);
  } catch (_) {
    return null;
  }
}