fromJson static method

  1. @visibleForTesting
PrepareProgress? fromJson(
  1. dynamic jsonObject
)

Implementation

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