fromJson static method

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

Implementation

@visibleForTesting
static DocumentsDatabase? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = DocumentsDatabase();

  result._databaseID = jsonObject["databaseID"];
  result._version = jsonObject["version"];
  result._date = jsonObject["date"];
  result._databaseDescription = jsonObject["databaseDescription"];
  result._countriesNumber = jsonObject["countriesNumber"];
  result._documentsNumber = jsonObject["documentsNumber"];
  result._size = jsonObject["size"];

  return result;
}