payload property
Object?
get
payload
The payload, decoded.
Throws AtSigningVerificationException for a payload that does not decode — which is a different failure from a malformed envelope, and is why it is not checked at fromJson.
Implementation
Object? get payload {
try {
return jsonDecode(utf8.decode(_base64UrlDecode(payloadB64, 'payload')));
} on FormatException catch (e) {
throw AtSigningVerificationException(
"the envelope's payload does not decode to JSON: ${e.message}");
}
}