fromJson static method

PrepareProgress? fromJson(
  1. dynamic jsonObject
)

Implementation

@visibleForTesting
static PrepareProgress? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  return PrepareProgress(
    jsonObject["downloadedBytes"],
    jsonObject["totalBytes"],
    jsonObject["progress"],
  );
}