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"])!,
    licenseUpdate: jsonObject["licenseUpdate"],
  );
  result._useBleDevice = jsonObject["useBleDevice"];

  return result;
}