json method

Future json()

Implementation

Future<dynamic> json() async {
  final content = await text();

  if (content.isEmpty) return null;

  return jsonDecode(content);
}