getBodyAsString method

String? getBodyAsString()

Gets the body as a string (UTF-8 decoded)

Implementation

String? getBodyAsString() {
  if (body == null) return null;
  return utf8.decode(body!);
}