tryDecodeJson method

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

Implementation

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

    return data;
  }
}