RuntimeDiagnostics.fromResponse constructor

RuntimeDiagnostics.fromResponse(
  1. Map<String, Object?> response
)

Implementation

RuntimeDiagnostics.fromResponse(Map<String, Object?> response)
  : activeHandles = response['activeHandles'] as int,
    slotCapacity = response['slotCapacity'] as int,
    reusableSlots = response['reusableSlots'] as int,
    handlesByKind = Map<String, int>.unmodifiable(
      (response['handlesByKind'] as Map).cast<String, int>(),
    );