SessionUnits.fromJson constructor

SessionUnits.fromJson(
  1. JsonMap rawData
)

Implementation

factory SessionUnits.fromJson(JsonMap rawData) {
  return SessionUnits(
    speedUnits: rawData["speed-units"].cast<String>(),
    speedBytes: rawData["speed-bytes"] as num,
    sizeUnits: rawData["size-units"].cast<String>(),
    sizeBytes: rawData["size-bytes"] as num,
    memoryUnits: rawData["memory-units"].cast<String>(),
    memoryBytes: rawData["memory-bytes"] as num,
  );
}