fromJson static method

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

Implementation

@visibleForTesting
static InitConfig? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = InitConfig(_dataFromBase64(jsonObject["license"])!);

  result.customDb = _dataFromBase64(jsonObject["customDb"]);
  result.delayedNNLoad = jsonObject["delayedNNLoad"];
  result.licenseUpdate = jsonObject["licenseUpdate"];
  result.blackList = jsonObject["blackList"];
  result.databasePath = jsonObject["databasePath"];

  return result;
}