toJson abstract method

Map<String, dynamic> toJson()

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();