json<T> method
T?
json<T>()
Implementation
T? json<T>() {
try {
final jsonStr = body;
if (jsonStr.isEmpty) return null;
// You would typically use dart:convert here
// For now, return null if conversion fails
return null;
} catch (e) {
return null;
}
}