AdbMemoryInfo.fromJson constructor

AdbMemoryInfo.fromJson(
  1. Map<String, dynamic> json
)

All data inside of AdbMemoryInfo is in total bytes. When receiving ADB data from the service extension (directly from ADB) then the data is in kilobytes. See the factory constructor fromJsonInKB.

Implementation

factory AdbMemoryInfo.fromJson(Map<String, dynamic> json) => AdbMemoryInfo(
      json[realTimeKey] as int,
      json[javaHeapKey] as int,
      json[nativeHeapKey] as int,
      json[codeKey] as int,
      json[stackKey] as int,
      json[graphicsKey] as int,
      json[otherKey] as int,
      json[systemKey] as int,
      json[totalKey] as int,
    );