resetWithBuiltinConfig method
Reset configuration with builtin values from dictionary
Implementation
void resetWithBuiltinConfig(Map dict) {
// Implementation logic
appId = dict['appId'];
url = dict['url'];
authorization = dict['authorization'];
// Android Gson decoding will become double
if (dict['cacheThreshold'] is double) {
cacheThreshold = (dict['cacheThreshold'] as double).toInt();
} else if (dict['cacheThreshold'] is int) {
cacheThreshold = dict['cacheThreshold'];
}
if (dict['timeInterval'] is double) {
timeInterval = (dict['timeInterval'] as double).toInt();
} else if (dict['timeInterval'] is int) {
timeInterval = dict['timeInterval'];
}
reportLaunch = dict['reportLaunch'];
reportBackground = dict['reportBackground'];
uid = dict['uid'];
tag = dict['tag'];
enableNetwork = dict['enableNetwork'];
enableCrash = dict['enableCrash'];
enableLaunch = dict['enableLaunch'];
enableANR = dict['enableANR'];
enableError = dict['enableError'];
enableDevice = dict['enableDevice'];
enableEvent = dict['enableEvent'];
networkWhiteList = dict['networkWhiteList'];
traceType = dict['traceType'];
samplingRate = dict['samplingRate'];
}