Database.fromJson constructor

Database.fromJson(
  1. Map _json
)

Implementation

Database.fromJson(core.Map _json) {
  if (_json.containsKey("createTime")) {
    createTime = _json["createTime"];
  }
  if (_json.containsKey("name")) {
    name = _json["name"];
  }
  if (_json.containsKey("restoreInfo")) {
    restoreInfo = new RestoreInfo.fromJson(_json["restoreInfo"]);
  }
  if (_json.containsKey("state")) {
    state = _json["state"];
  }
}