toJson method
The wire form. Reproduces what was parsed byte for byte, because both halves were kept verbatim.
Implementation
Map<String, Object?> toJson() => {
'payload': payloadB64,
'signatures': [for (final s in signatures) s.toJson()],
};