tryDecodeJson method

  1. @protected
  2. @visibleForTesting
FutureOr tryDecodeJson(
  1. String data
)
inherited

Implementation

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

    return data;
  }
}