asString property

String get asString

The message body as a String.

The binary body is decoded into a String using an UTF-8 decoder.

If the body is not UTF-8 encoded use the asBytes getter and manually apply the correct decoding.

Implementation

String get asString;