toJson method

Map<String, dynamic> toJson()

Converts the JWK to a JSON map.

Returns a map containing the JWK properties.

Implementation

Map<String, dynamic> toJson() {
  return {
    'kty': kty,
    'crv': crv,
    'x': x,
    'd': d,
    'y': y,
  };
}