contentAsJson method

Future<Map<String, dynamic>?> contentAsJson()

Content parsed from JSON.

Implementation

Future<Map<String, dynamic>?> contentAsJson() async {
  try {
    return (await contentAsString())?.let((it) => it.toJsonOrNull());
  } on Exception {
    return null;
  }
}