tryDecodeJson method
Implementation
@protected
@visibleForTesting
FutureOr<dynamic> tryDecodeJson(String data) {
try {
return json.decode(data);
} catch (e) {
chopperLogger.warning(e);
return data;
}
}
@protected
@visibleForTesting
FutureOr<dynamic> tryDecodeJson(String data) {
try {
return json.decode(data);
} catch (e) {
chopperLogger.warning(e);
return data;
}
}