fromJson static method

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

Implementation

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

  result._api = jsonObject["api"];
  result._core = jsonObject["core"];
  result._coreMode = jsonObject["coreMode"];
  result._database = DocumentsDatabase.fromJson(jsonObject["database"]);

  return result;
}