toJson method
Converts the object to a JSON representation.
Implementation
@override
Map<String, dynamic> toJson() {
return {
"context": context.value,
"body_protected": bodyProtected.toJson(),
"sign_protected": signProtected?.toJson(),
"external_aad": BytesUtils.toHexString(externalAAD),
"payload": BytesUtils.toHexString(payload),
"serialization_config": serializationConfig.toJson()
};
}