toJson abstract method
Serializes the JsonWebSignature or JsonWebEncryption to a JSON representation.
For JsonWebSignature, returns a flattened JSON serialization when it contains only one signature and a general JSON serialization otherwise.
Implementation
Map<String, dynamic> toJson();