parseOutputJSON method

dynamic parseOutputJSON(
  1. Object? value
)

Implementation

dynamic parseOutputJSON(Object? value) {
  if (value == null) return null;
  if (value is String) return jsonDecode(value);
  if (value is Map) return value;
  if (value is List) return value;
  if (value is num) return value;
  if (value is bool) return value;
  return jsonDecode('$value');
}