fromVmServiceEvent static method

EventFromApp<Object>? fromVmServiceEvent(
  1. Event event
)

Implementation

static EventFromApp? fromVmServiceEvent(Event event) {
  if (event.extensionKind != memoryLeakTrackingExtensionName) return null;
  final data = event.json!['extensionData'] as Map<String, dynamic>;
  return EventFromApp.fromJson(data);
}