getJSONObject method
Implementation
Future<Object> getJSONObject(String key, Object fallbackValue) async {
try {
final args = [key, jsonEncode(fallbackValue)];
var jSONString = await _channel.invokeMethod('getJSONObject', args);
if (jSONString != null) {
return jsonDecode(jSONString as String);
} else {
return fallbackValue;
}
} on Exception catch (e) {
Logger.i("$e Error while getting config's");
return fallbackValue;
}
}