toJson method
Serialize to a JSON-encodable map, omitting absent members.
Implementation
Map<String, dynamic> toJson() => <String, dynamic>{
if (sealed != null) 'sealed': sealed!.toJson(),
if (encrypted != null) 'encrypted': encrypted!.toJson(),
'tag': tag,
'attestation': attestation,
};